Fixes in datetime functions

This commit is contained in:
absurdo 2023-10-14 12:54:46 +02:00
parent e874bace60
commit 65ddc6f32f
2 changed files with 10 additions and 1 deletions

View file

@ -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"""