cdfepoch - Construct cdfepoch object for Common Data Format (CDF) export

Syntax

E = cdfepoch(date)

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.

See Also

cdfinfo, cdfread, cdfwrite, datenum

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS