huntsman.drp.utils.date
Functionality to assist handling of dates within huntsman-drp.
Functions
|
Returns the UTC time now as a datetime.datetime object. |
|
Get the UTC date now in YYYY-MM-DD format. |
|
Convert a date to YYYY:MM:DD format. |
|
Take a list of calib docs and determine the set of unique calib dates. |
|
Take a list of fits file names and extract the DATE-OBS keyword value from the headers and determine the set of unique dates in the list. |
|
Convenience function to make a mongo date constraint. |
|
Parse a date as a datetime.datetime. |
|
Take a list of calib docs to be ingested into a butler repo and determine the max and min dates and then add or subtract the validity parameter to produce the min and max valid dates for the calibs. |