Converts any numberof seconds into date/time values.
Date_Fmt Specifies the format of the base date, if passed into the function. Possible values are 1, 2, 3, 4, or 5, as summarized in the following table:
Value | Format Description | Examples for May 1, 1992 |
---|---|---|
1 | MM*DD*[YY]YY | 05/01/92 |
2 | DD*MM*[YY]YY | 01-05-92 |
3 | ddd*[YY]YY | 122,1992 |
4 | DD*mmm[mmmmmm]*[YY]YY | 01/May/92 |
5 | [YY]YY*MM*DD | 1992-05-01 |
For a description of these formats, see Converting Your Data into Date/Time Data in Chapter 8 of the PV-WAVE User's Guide.
date = SEC_TO_DT(20, Base='1-1-70', $
Date_Fmt=1)
PRINT, date
{ 1970 1 1 0 0 20.0000 79367.000 0}
6.3119520e+08 113 6.3128160e+08 768 6.3136800e+08 632 6.3145440e+08 227 6.3154080e+08 224
tarray
. The second column is read into an array called fluid_level
, which indicates the water level of a lake for each specified time period. You can convert the date/time data in Column 1 to date/time data with the SEC_TO_DT function:
dtarray = SEC_TO_DT(tarray, Base='1-1-70') PRINT, dtarray { 1990 1 1 12 0 0.00000 86672.500 0} { 1990 1 2 12 0 0.00000 86673.500 0} { 1990 1 3 12 0 0.00000 86674.500 0} { 1990 1 4 12 0 0.00000 86675.500 0} { 1990 1 5 12 0 0.00000 86676.500 0}
For more information, see Chapter 8, Working with Date/Time Data, in thePV-WAVE User's Guide.