Skip to content

moeinfatehi/python_time_extended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

python_time_extended

This repo contains extended time functions for python3.

Extended Functions:

  • 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

Releases

No releases published

Packages

No packages published

Languages