polyfemos.almanac.utils¶
Collection of miscellanous date functions
- copyright
2019, University of Oulu, Sodankyla Geophysical Observatory
- license
GNU Lesser General Public License v3.0 or later (https://spdx.org/licenses/LGPL-3.0-or-later.html)
Public Functions
-
polyfemos.almanac.utils.
get_jY
(date_)[source]¶ - Parameters
date_ (
date
orUTCDateTime
.) –- Return type
- Returns
the day of the year and the year of given
date_
-
polyfemos.almanac.utils.
parse_date
(datestr)[source]¶ If empty
datestr
is give, today is returned- Parameters
datestr (str or
date
orUTCDateTime
) – date in format ‘YEAR-MONTH-DAY’ or ‘YEAR-JULDAY’- Return type
- Returns