MCPcopy
hub / github.com/doocs/leetcode / format_time

Method format_time

solution/main.py:296–298  ·  view source on GitHub ↗
(timestamp: int)

Source from the content-addressed store, hash-verified

294
295 @staticmethod
296 def format_time(timestamp: int) -> str:
297 tz = timezone(timedelta(hours=+8))
298 return datetime.fromtimestamp(timestamp, tz).strftime("%Y-%m-%d %H:%M")
299
300 def get_data(self, retry: int = 3):
301 try:

Callers 1

formatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected