CImage:DateStr
The DateStr method returns a string for the date-stamp at the beginning of the exposure.
sDate = CImage:DateStr() |
The date sDate is a string in the form yyyy-mm-dd.
On failure, this method returns nil.
The return value is referred to GMT date. The related Date method returns the date as a number of days.
Suppose that an image in the file sPath was acquired on 24 March 1996 GMT. The following script 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' |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.