Documentation Center

  • Trial Software
  • Product Updates

cdflib.computeEpoch16

Convert time value to CDF_EPOCH16 value

Syntax

epoch16 = cdflib.computeEpoch16(timeval)

Description

epoch16 = cdflib.computeEpoch16(timeval) converts the time value specified by timeval into a CDF_EPOCH16 value.

Input Arguments

timeval

10-by-1 time vector. The following table describes the time components. To specify multiple time values, use additional columns.

ComponentDescription
yearAD e.g. 1994
month1–12
day1–31
hour0–23
minute0–59
second0–59
millisecond0–999
microsecond0–999
nanosecond0–999
picosecond0–999

Output Arguments

epoch16

CDF Epoch16 time value. If the input argument timeval has m-by-10 elements, the return value epoch16 will have size 2-by-m

Examples

Convert the time value into an CDF_EPOCH16 value:

timeval = [1999; 12; 31; 23; 59; 59; 50; 100; 500; 999];
epoch16 = cdflib.computeEpoch16(timeval);

References

This function corresponds to the CDF library C API routine computeEPOCH16.

To use this function, 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.

See Also

| |

Tutorials

Was this topic helpful?