CImage:KwdSetTime


The KwdSetTime method inserts a time value keyword string into the image header.

Syntax

CImage:KwdSetTime( sKwd, sTime )

where

    sKwd is the keyword name

    sTime is the string time value.

  

This method inserts into the image header a time keyword such as TIME-OBS or another TIMExxxx type keyword. If the keyword name already exists, its value is overwritten by the new value.

Example

Suppose a CImage named I exists. The following script sets a standard format TIME keyword in the header:

 

t = "00:15:12.2"

-- time is 0h 15m 12.2s in GMT

I:KwdSetTime("TIME-OBS",t)

-- set the TIME-OBS keyword

Related Topics

KwdSetDate

CImage class