plummet/__init__.py
def momentize(moment: AGGREGATE_TYPE = None):
    """
    Produces a pendulum.DateTime instance in UTC given a string
    timestamp, a datetime instance, a pendulum instance, or the
    current time (if passed None).

    Raises an exception if another type is passed.
    """
    if moment is None:
        return pendulum.now("UTC")
    elif isinstance(moment, str):
        return pendulum.parse(moment, tz="UTC")
    elif isinstance(moment, datetime.datetime):
        return pendulum.instance(moment).in_tz("UTC")
    elif isinstance(moment, pendulum.DateTime):
        return moment.in_tz("UTC")
    else:
        raise PlummetError(f"Cannot create a moment from {moment}")

    Produces a pendulum.DateTime instance in UTC given a string
    timestamp, a datetime instance, a pendulum instance, or the
    current time (if passed None).

    Raises an exception if another type is passed.
    
Produces a pendulum.DateTime instance in UTC given a string
timestamp, a datetime instance, a pendulum instance, or the
current time (if passed None).

Raises an exception if another type is passed.
Produces a pendulum . DateTime instance in UTC given a string timestamp a datetime instance a pendulum instance or the current time ( if passed None ) . Raises an exception if another type is passed .
def momentize(moment: AGGREGATE_TYPE = None):
    if moment is None:
        return pendulum.now("UTC")
    elif isinstance(moment, str):
        return pendulum.parse(moment, tz="UTC")
    elif isinstance(moment, datetime.datetime):
        return pendulum.instance(moment).in_tz("UTC")
    elif isinstance(moment, pendulum.DateTime):
        return moment.in_tz("UTC")
    else:
        raise PlummetError(f"Cannot create a moment from {moment}")
def momentize ( moment : AGGREGATE_TYPE = None ) : if moment is None : return pendulum . now ( "UTC" ) elif isinstance ( moment , str ) : return pendulum . parse ( moment , tz = "UTC" ) elif isinstance ( moment , datetime . datetime ) : return pendulum . instance ( moment ) . in_tz ( "UTC" ) elif isinstance ( moment , pendulum . DateTime ) : return moment . in_tz ( "UTC" ) else : raise PlummetError ( f"Cannot create a moment from {moment}" )
Produces a pendulum.DateTime instance in UTC given a string
timestamp, a datetime instance, a pendulum instance, or the
current time (if passed None).
Produces a pendulum . DateTime instance in UTC given a string timestamp a datetime instance a pendulum instance or the current time ( if passed None ) .
"""
    Produces a pendulum.DateTime instance in UTC given a string
    timestamp, a datetime instance, a pendulum instance, or the
    current time (if passed None).

    Raises an exception if another type is passed.
    """
moment
AGGREGATE_TYPE