CImage:Time

CImage:TimeStr


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

Syntax

sTime = CImage:TimeStr()

Example

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

I = CImage:new()

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