ideas_datenum


Purpose

Get MATLAB datenum for an I-deas date string.

Syntax

n=ideas_datenum(s)

Description

IDEAS_DATENUM is a utility function that converts an I-deas date/time string s into a numeric date/time n.

I-deas date/time strings are used for creation and modification date strings in imat_fn objects, and have the format 'DD-MMM-YY    HH:MM:SS'. IDEAS_DATENUM also handles the IRIG Time format, which is 'DDD:HH:MM:SS.SSSSSS', where DDD is the number of days from the beginning of the year.

MATLAB numeric date/time values are serial days where 1 is 1-Jan-0000.

Examples

>> f=imat_fn(1);
>> n=ideas_datenum(f.createdate)
n =
   7.2974e+05
>> datevec(n)
ans =
        1997          12          16           9          24          41
>>

See Also

ideas_datestr