Return to directory of Todd's CASA extensions

Takes 2 strings of format 'YYYY-MM-DD' and returns a new string a specified number of days before. Can also use 'YYYYMMDD' or 'YYYY/MM/DD'.


au.subtractDays(date1, days=1)


CASA <4>: au.subtractDays('2014-03-01')
  Out[4]: '2014-02-28'

CASA <2>: au.subtractDays('2014/01/01')
  Out[2]: '2013/12/31'

-- ToddHunter - 2014-11-12

This topic: ALMA > TWikiUsers > ToddHunter > CasaExtensions > SubtractDays
Topic revision: 2014-11-12, 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