Return to directory of Todd's CASA extensions

Gets the day number for a specified date time string. See also yearFraction and dateFromDoy.


au.doyFromDate(date='', fractional=False)
  • date: string of format: 2011/10/15 05:00:00 or 2011/10/15-05:00:00 or 2011-10-15 05:00:00 or 2011-10-15-05:00:00 or 2011-10-15T05:00:00 or 2011-Oct-15 etc. The time portion is optional.
  • integer day number, e.g. 288, unless fractional=True, in which case the fraction of the day is also applied


CASA <2>: au.doyFromDate()
  Out[2]: 58

-- ToddHunter - 2016-02-27
Topic revision: r2 - 2016-05-09, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback