CImage:Date
The Date method returns the date-stamp at the beginning of the exposure.
nDays = CImage:Date() |
The value is the number of days since Jan 1.0, 1970 and is referred to GMT. The DateStr method returns the date as a string.
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:
|
-- create a new CImage |
|
-- open the image |
|
-- Result: d = 9579 days |
|
-- Result: D ='1996-03-24' |