completely implemented downloading from youtube
This commit is contained in:
@@ -205,6 +205,19 @@ class ID3Timestamp:
|
||||
time_format = self.get_time_format()
|
||||
return time_format, self.date_obj.strftime(time_format)
|
||||
|
||||
@classmethod
|
||||
def fromtimestamp(cls, utc_timestamp: int):
|
||||
date_obj = datetime.datetime.fromtimestamp(utc_timestamp)
|
||||
|
||||
return cls(
|
||||
year=date_obj.year,
|
||||
month=date_obj.month,
|
||||
day=date_obj.day,
|
||||
hour=date_obj.hour,
|
||||
minute=date_obj.minute,
|
||||
second=date_obj.second
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def strptime(cls, time_stamp: str, format: str):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user