Description

Converts times in external formats into internal system format. Internal system time is calculated as the number of seconds past midnight. A 24-hour day has 86,400 seconds.

Syntax

internal = IConv (string"MT [H] [S] [char]")

Parameters

IConv (MT) accepts arguments for the following parameters.

ParameterDescription
MTIndicates a time conversion.
H, S, and charThese options have no effect on the IConv function. These are OConv options that are allowed in the IConv function so you can use the same specifications for both input and output conversions.

See Also

Time()OConv Time (MT) function

Example

TIME     = "08:28PM"
CONVERSION  = "MTH"
Internal_time = IConv(TIME,CONVERSION)
* The value 73680 is saved in Internal_time.

The following table provides examples of the correct use of the IConv Time function.

ExampleOutput
IConv("12:01", "MT")43260
IConv("12:01PM", "MTH")43260
IConv("12:01:59PM", "MT")43319
IConv(2, "MT")7200
IConv("2:01AM", "MT")7260
IConv("2/01/2009", "MT,")15036
  • No labels