is_time
The is_time function determines if a string value is a time value like '04:35:14.45' or 04:35:14.45. Strings with enclosing ' ' are present in FITS image headers and are returned using CImage:KwdGetRaw.
bResult = is_time( sString ) |
sString is
the string to test.
bResult =
true if the string is
a time value.
bResult =
false if not a
string.
The script below evaluates several strings to test for time format:
|
-- time string with ' ' |
|
|
|
-- prints result = true |
|
|
|
-- time string without ' ' |
|
|
|
-- prints result = true |
|
|
|
-- string, but not time |
|
|
|
-- prints result = false |
|
|
|
-- not a string |
|
|
|
-- prints result = false |
Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.