Almost completed refactoring of source docstrings for new doc system
This commit is contained in:
parent
2208a3030c
commit
9fbfc8f8d0
18 changed files with 331 additions and 332 deletions
|
|
@ -41,8 +41,8 @@ def color(entry, option_key="Color", **kwargs):
|
|||
|
||||
def datetime(entry, option_key="Datetime", account=None, from_tz=None, **kwargs):
|
||||
"""
|
||||
Process a datetime string in standard forms while accounting for the inputer's timezone. Always
|
||||
returns a result in UTC.
|
||||
Process a datetime string in standard forms while accounting for the
|
||||
inputer's timezone. Always returns a result in UTC.
|
||||
|
||||
Args:
|
||||
entry (str): A date string from a user.
|
||||
|
|
@ -50,7 +50,7 @@ def datetime(entry, option_key="Datetime", account=None, from_tz=None, **kwargs)
|
|||
account (AccountDB): The Account performing this lookup. Unless `from_tz` is provided,
|
||||
the account's timezone option will be used.
|
||||
from_tz (pytz.timezone): An instance of a pytz timezone object from the
|
||||
user. If not provided, tries to use the timezone option of the `account'.
|
||||
user. If not provided, tries to use the timezone option of `account`.
|
||||
If neither one is provided, defaults to UTC.
|
||||
Returns:
|
||||
datetime in UTC.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue