cdflib.epoch16Breakdown
Convert CDF_EPOCH16 value to time value
Syntax
timeVec = cdflib.epoch16Breakdown(epoch16Time)
Description
timeVec = cdflib.epoch16Breakdown(epoch16Time) converts a
        CDF_EPOCH16 value to a time vector. timeVec is a
        10-by-n array, where n is the number of
        CDF_EPOCH16 values.
This table describes the time value components.
| timeVecElement | Description | Valid Values | 
|---|---|---|
| timeVec(1,:) | Year CE | Nonnegative integer (for example, 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 | 
Examples
Convert a CDF_EPOCH16 value to a time value.
% First convert a time vector into a CDF_EPOCH16 value timeVal = [1999 12 31 23 59 59 0 100 500 999]; epoch16Time = cdflib.computeEpoch16(timeVal); % Convert the CDF_EPOCH16 value into a time vector timeVec = cdflib.epoch16Breakdown(epoch16Time)
timeVec =
        1999
          12
          31
          23
          59
          59
           0
         100
         500
         999Tips
- This function corresponds to the CDF library C API routine - EPOCH16breakdown.
- To use this function, you must be familiar with the CDF C interface. You can access the CDF documentation at the CDF website.