LDT_Now

 Function - Reports the current system time as a long date and time (LDT).

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

output

LDT

N/A

N/A

No default

A variable where the present system time is written.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

Q

BOOL

FALSE, TRUE

N/A

If TRUE, the present time was read successfully.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

// Obtain the current time, then convert it to a local calendar date and time.
Ok := LDT_Now(MyLDT);
IF Ok THEN
   Ok := LDT_To_DTL_Local(MyLDT, MyDTL);
   IF Ok THEN
      // MyDTL now holds the current local calendar date and time.
   END_IF;
END_IF;