Convert CDF_EPOCH
value into time value
timeVec = cdflib.epochBreakdown(epochTime)
timeVec = cdflib.epochBreakdown(epochTime)
decomposes the CDF_EPOCH
value, epochTime
value
into individual time components. timeVec
will have
7-by-n elements, where n is
the number of CDF_EPOCH
values in epochTime
.
The return value timeVec
has the following
elements:
timeVec Element | Description | Valid Values |
---|---|---|
timeVec(1,:) | Year AD | e.g. 1994 |
timeVec(2,:) | Month | 1–12 |
timeVec(3,:) | Day | 1–31 |
timeVec(4,:) | Hour | 0–23 |
timeVec(5,:) | Minute | 0–59 |
timeVec(6,:) | Second | 0–59 |
timeVec(7,:) | Millisecond | 0–999 |
Convert a CDP_EPOCH
value into a time vector.
% First convert a time vector into a CDF_EPOCH value timeval = [1999 12 31 23 59 59 0]; epoch = cdflib.computeEpoch(timeval); % Convert the CDF_EPOCH value into a time vector timevec = cdflib.epochBreakdown(epoch) timevec = 1999 12 31 23 59 59 0
This function corresponds to the CDF library C API routine EPOCHbreakdown
.
To use this function, you must be familiar with the CDF C
interface. Read the CDF documentation at the CDF website
.
For copyright information, see the cdfcopyright.txt
file.