CImage:Darktime CImage:DateStr

CImage:Date


The Date method returns the date-stamp at the beginning of the exposure.

Syntax

nDays = CImage:Date()

bullet.gif    The date nDays is the number of days since Jan 1.0, 1970 GMT.

bullet.gif    On failure, this method returns 0.

Remarks

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.

Example

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:

I = new_image()

-- 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 class, DateStr, Time


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.