Snekdate

Latest version: v0.0.4

Safety actively analyzes 623642 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.4

Changed to a SnekDate object. Most of the functions in the original package are now available as static methods in the object:

`SnekDate.now()`

The within function was removed from the package.

You can use the object to quickly return a date or a date range from the object in either a string or datetime format. The default value for the start date will be now if nothing is passed:

`SnekDate().start Returns the value for now as a datetime object`

To create an offset, you can use the offset method. The start and end dates will automatically be determined.

`SnekDate().offset(day=1).start returns the value a day into history from now`
`SnekDate().offset(day=1).end returns the value of now`
`SnekDate().offset(day=1).range Returns a tuple with the first index as the start date, the 2nd index as an end date`

There are properties that will return string values for each of these. Simply add "_str" to the property name:

`SnekDate().offset(day=1).start_str Returns the string representation of the start date`
`SnekDate().offset(day=1).range_str Returns a tuple of string representations of the start and end dates`

0.0.3

This time you work now, ok?

0.0.2

Add all the content.

0.0.1

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.