MATLAB Function Reference |
Construct cdfepoch
object for Common Data Format (CDF) export
Syntax
Description
E = cdfepoch(date)
constructs a cdfepoch
object, where date
is a valid string (datestr
), a number (datenum
) representing a date, or a cdfepoch
object.
When writing data to a CDF using cdfwrite
, use cdfepoch
to convert MATLAB formatted dates to CDF formatted dates. The MATLAB cdfepoch
object simulates the CDFEPOCH
data type in CDF files.
Use the todatenum
function to convert a cdfepoch
object into a MATLAB serial date number.
Note
A CDF epoch is the number of milliseconds since 1-Jan-0000. MATLAB datenums are the number of days since 0-Jan-0000.
|
See Also
cdfinfo
, cdfread
, cdfwrite
, datenum
cdf2rdf | cdfinfo |
© 1994-2005 The MathWorks, Inc.