Table of Contents

DATETOTALSECONDS

Function name

DATETOTALSECONDS

ST call

PROGRAM DATETOTALSECONDS_DEMO
  VAR
     DT1: DT;
        LR1:LREAL;
  END_VAR
 LR1 := DATETOTALSECONDS(IN1 := DT1);
END_PROGRAM

Description

Returns number of seconds since the beginning of our era (since 1.1. 0000, 00:00) for a particular date and time.

Inputs

InputType Description
IN1 ANY_DATEInput value

Outputs

OutputType Description
LREALOutput value

Application example