CImage:Time

CImage:TimeStr


The TimeStr method returns a string for the time-stamp at the beginning of the exposure.

Syntax

sTime = CImage:TimeStr()

bullet.gif    The the string sTime is referred to midnight GMT.

bullet.gif    On failure, this method returns nil.

Example

Suppose that an image in the file sPath was acquired beginning at 0h 52m 23.62s. 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, Time


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