arctichoke
Submodules
Attributes
Functions
|
Get the current datetime in UTC. |
Package Contents
- arctichoke.__version__
- arctichoke.get_current_datetime_str(str_format: str = '%Y-%m-%dT%H:%M:%SZ')
Get the current datetime in UTC.
Format the current datetime into a string based on the given format string.
- Parameters:
str_format (str, optional) – The format string by which to format the current datetime. Default is “%Y-%m-%dT%H:%M:%SZ”.
- Returns:
datetime_str – The formatted current datetime as a string.
- Return type:
str
Examples
>>> from arctichoke import get_current_datetime_str >>> get_current_datetime_str