SunPy time

sunpy.time Package

Time related functionality


break_time([t, time_format]) Given a time returns a string.
day_of_year(time_string) Returns the (fractional) day of year.
extract_time(string) Find subset of string that corresponds to a datetime and return its value as a a datetime.
find_time(string, format) Return iterator of occurrences of date formatted with format in string.
get_day(dt) Return datetime for the beginning of the day of given datetime.
is_time(time_string[, time_format]) Returns true if the input is a valid date/time representation
is_time_in_given_format(time_string, time_format) Tests whether a time string is formatted according to the given time format.
julian_centuries([t]) Returns the number of Julian centuries since J1900.0 (noon on 1900 January 0).
julian_day([t]) Wrap a UTC -> JD conversion from astropy.
parse_time(time_string[, time_format]) Given a time string will parse and return a datetime object.


TimeRange(a[, b]) An object to handle time ranges.

Class Inheritance Diagram

Inheritance diagram of sunpy.time.timerange.TimeRange