VirtualString.EpochScan(String, Variable) Method

Top 

Description

Converts the calendar-based epoch specified by the String into the TAI numeric time system. The format of the input String is given by formatString. The format string can include the date and time formats shown in the "Parsing Dates and Times" reference in the Help File, including month, day, year, hours, minutes, and seconds. If formatString does not fully define a time, the necessary data will be filled in using the referenceTimeVariable Variable. If a reference time is not specified, the time "Jan 01 2000 00:00:00.000" (epoch 21544.500370370) will be used.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

 

Method Signature

VirtualString.EpochScan(

String formatString,


Variable referenceTimeVariable)

 

 

Arguments

formatString


Description:

Specifies the format of the String object. The format string can include the date and time formats shown in the "Parsing Dates and Times" reference in the Help File, including month, day, year, hours, minutes, and seconds. If a format string is not specified, the format "Mmm DD YYYY hh:mm:ss.fs" will be used.

 

 

referenceTimeVariable


Description:

Specifies the reference time to use if the String object does not fully define a time. If a reference time variable is not specified, the epoch "21544.500370370" will be used.

 

 

 

Return Value

Type:

number

Units:

day

 

 

Returns the calendar-based epoch specified by the String in the specified numeric time system.

 

Syntax

myVariable1 = myString1.ToLowercase().EpochScan(myString2, myVariable2);

 

 

See also

VirtualString Object

VirtualString.EpochScan

Parsing Dates and Times