shorthand-datetime 0.2.1

Creator: bradpython12

Last updated:

0 purchases

shorthand-datetime 0.2.1 Image
shorthand-datetime 0.2.1 Images

Languages

Categories

Add to Cart

Description:

shorthanddatetime 0.2.1

Shorthand datetime
Simple package to parse shorthand datetime strings


Using the package

from shorthand_datetime.shorthand import parse_shorthand_datetime

s = 'now-7d'
dt = parse_shorthand_datetime(s)



Typical examples

now-7d : current timestamp minus 7d
now/d : today, rounded to the start of the day
now-7d/d: 7 days ago, rounded to the start of the day
now/M : first day of this month
now-1M/M : first day of previous month



Acknowledgements

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.