CImage:Time


The Time method returns the time-stamp at the beginning of the exposure as the number of seconds.

Syntax

nSeconds = CImage:Time()

bullet.gif    The time nSeconds is the number of seconds since midnight GMT.

bullet.gif    On failure, this method returns 0.

Example

Suppose that an image in the file sPath was acquired beginning at 0h 52m 23.62s GMT. The following script returns the time at which the image was acquired:

I = new_image()

-- create a new CImage

I:Open( sPath )

-- open the image

Printf( "t = %lg", I:Time())

-- Result: t = 3143.62 sec

Printf( "T = '%s'", I:TimeStr())

-- Result: T = '00:52:23.62'

Related Topics

CImage class, TimeStr, Date


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