| Contents | Index |
timeVec = cdflib.epoch16Breakdown(epoch16Time)
timeVec = cdflib.epoch16Breakdown(epoch16Time) convert a CDF_EPOCH16 value into a time vector. timeVec will have 10-by-n elements, where n is the number of CDF_EPOCH16 values.
The following table describes the time value components.
| 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 |
| timeVec(8,:) | Microsecond | 0–999 |
| timeVec(9,:) | Nanosecond | 0–999 |
| timeVec(10,:) | Picosecond | 0–999 |
Convert CDF_EPOCH16 value into time value.
timeval = [1999; 12; 31; 23; 59; 59; 50; 100; 500; 999];
epoch16 = cdflib.computeEpoch16(timeval);
timevec = cdflib.epoch16Breakdown(epoch16)
timevec =
1999
12
31
23
59
59
50
100
500
999This function corresponds to the CDF library C API routine EPOCH16breakdown. To use these functions, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF Web site. For copyright information, see the cdfcopyright.txt file.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |