CImage:Date CImage:DimEq

CImage:DateStr


The DateStr method returns a string for the date-stamp at the beginning of the exposure.

Syntax

sDate = CImage:DateStr()

Remarks

The return value is referred to GMT date. The related Date method returns the date as a number of days.

Example

Suppose that an image in the file sPath was acquired on 24 March 1996 GMT. The following script fragment returns the date on which the image was acquired:

I = CImage:new()

-- create a new CImage

I:Open( sPath )

-- open the image

Printf( "d = %lg", I:Date())

-- Result: d = 9579 days

Printf( "D = '%s'", I:DateStr())

-- Result: D ='1996-03-24'

Related Topics

CImage, Date, TimeStr