The class Delorean <Delorean> object. This method accepts naive datetime objects, with a string timezone.
This method returns the actual date object associated with the Delorean object.
This method returns the actual datetime object associated with the Delorean object.
This method returns the total seconds since epoch associated with the Delorean object.
This method returns midnight for datetime associated with the Delorean object.
Returns a naive datetime object associated with the Delorean object, this method simply converts the localize datetime to UTC and removes the tzinfo that is associated with it.
This method shifts the timezone from the current timezone to the specified timezone associated with the Delorean object
This method return a valid pytz timezone object associated with the Delorean object or raises Invalid Timezone error.
Truncate the delorian object to the nearest s (second, minute, hour, day, month, year)
This is a destructive method, modifies the internal datetime object associated with the Delorean object.
This method given a timezone returns a localized datetime object.
This method takes a timedelta and return the number of seconds it represents with the resolution of 10 **6
This method returns true if the datetime is naive else returns false
Given a naive datetime object this method will return a localized datetime object
Move datetime 1 month in the chosen direction. unit is a no-op, to keep the API the same as the day case
Move datetime 1 week in the chosen direction. unit is a no-op, to keep the API the same as the day case
Move datetime 1 year in the chosen direction. unit is a no-op, to keep the API the same as the day case
Given a object with a timezone return a datetime object normalized to the proper timezone.
This means take the give localized datetime and returns the datetime normalized to match the specificed timezone.
Return a delorean object, with utcnow as the datetime
Parses a datetime string in it and returns a Delorean object.
If a timezone is detected in the datetime string it will be normalized to UTC, and a Delorean object with that datetime and timezone will be returned.
This an alternative way to generating sets of Delorean objects with DAILY stops
This an alternative way to generating sets of Delorean objects with HOURLY stops
This an alternative way to generating sets of Delorean objects with MONTHLY stops
This an alternative way to generating sets of Delorean objects with YEARLY stops
This will create a list of delorean objects the apply to setting possed in.
Return a delorean object, with utcnow as the datetime