spedas/gui/utilities/
spd_ui_timefix.pro
Routines
Routines from spd_ui_timefix.pro
result = Test_leap_yr(iyr, modays=modays)
NAME: test_leap_yr CALLING SEQUENCE: lyr=test_leap_yr(iyr,modays=modays) PURPOSE: Determines whether a given year is a leap year, and returns the number of days in every month INPUT: iyr = The year, as an integer OUTPUT: lyr= 1 if iyr is a leap year and 0 if not KEYWORDS: modays= the number of days in each month modays= [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] for a leap yr, [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] otherwise HISTORY: Written 19-OCt-93 by JM Rewritten, 9-jul-2007, jmm
result = spd_ui_timefix(time_in, progobj=progobj, _extra=_extra)
NAME: spd_ui_timefixPURPOSE: Will fix an input time string of yyyy-mm-dd hh:mm:ss.xxxx if there is only 1 digit in the day or hour or second, etc.
Routine details
top source Test_leap_yr
result = Test_leap_yr(iyr, modays=modays)
NAME: test_leap_yr CALLING SEQUENCE: lyr=test_leap_yr(iyr,modays=modays) PURPOSE: Determines whether a given year is a leap year, and returns the number of days in every month INPUT: iyr = The year, as an integer OUTPUT: lyr= 1 if iyr is a leap year and 0 if not KEYWORDS: modays= the number of days in each month modays= [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] for a leap yr, [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] otherwise HISTORY: Written 19-OCt-93 by JM Rewritten, 9-jul-2007, jmm
Parameters
- iyr
Keywords
- modays
top source spd_ui_timefix
result = spd_ui_timefix(time_in, progobj=progobj, _extra=_extra)
NAME: spd_ui_timefix PURPOSE: Will fix an input time string of yyyy-mm-dd hh:mm:ss.xxxx if there is only 1 digit in the day or hour or second, etc. Will also return an error message, if the months, days, hours, seconds are not valid. 2011-07-20, added comment to test post-commit emails, jmm 2011-11-04, added comment to test post-commit emails, jmm $LastChangedBy: egrimes $ $LastChangedDate: 2014-05-29 08:25:10 -0700 (Thu, 29 May 2014) $ $LastChangedRevision: 15254 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/spedas/gui/utilities/spd_ui_timefix.pro $
Parameters
- time_in
Keywords
- progobj
- _extra
File attributes
Modification date: | Mon Jun 9 05:58:59 2014 |
Lines: | 135 |