Skip to content

amir-hanna/time-stamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

time-stamp

Python module to write and check a time stamp

This is just an example of how to use tinydb. However, for such an easy task I would rather use pickle without a databse.

Import the module like this:

import t_stamp

To write a the current date and time as a time stamp:

t_stamp.write_ts()

To check that a certain time period (eg. 3 hours) has elapsed in seconds:

elapsed = 3 * 60 * 60

if t_stamp.too_recent(elapsed): do something ...

About

Python module to write and check a time stamp

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages