This repo contains extended time functions for python3.
- getTime(): Full date and time format (Wed, 01 Jan 2000, 12:00:00)
- getToday(): Only Date in format: (25/01/2000)
- getTimeFromTimestamp(timestamp): Convert timestamp to Full date and time format (Wed, 01 Jan 2000, 12:00:00)
- getTimeFromTimestamp_short(timestamp): Convert timestamp to simple time format (12:00)
- getTimeFromTimestamp_pattern(timestamp,pattern): Convert timestamp to custom strf format
- getNow(): get current timestamp
- getTimeDifFromTimestamps(after, before): Get time dif of two timestamps in seconds
- minute_is_changed(timestamp1, timestamp2): Returns true if two timestamps are not in equal minutes
- getElapsedTime(sec): Converts elapsed seconds to format: (?d, ?h:?m:?s)
- getElapsedTimeFromTimeStamps(after, before): Calculates Elapsed time between two timestamps and returns in format: format: (?d, ?h:?m:?s)
- get_time_checksum(timestamp): Returns sha1 hash of the given timestamp