Fixes in datetime functions
This commit is contained in:
parent
e874bace60
commit
65ddc6f32f
2 changed files with 10 additions and 1 deletions
|
|
@ -664,6 +664,15 @@ class TimeClass:
|
|||
"""
|
||||
|
||||
return self.t.format(self.format_date_full)
|
||||
|
||||
def format_datetime(self):
|
||||
"""Method for get datetime formatted using format_time attribute
|
||||
|
||||
Returns:
|
||||
Datetime formatted with format_time attribute
|
||||
"""
|
||||
|
||||
return self.t.format(self.format_time)
|
||||
|
||||
def local_to_utc(self):
|
||||
"""Method for convert datetime from actual timezone to UTC"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue