.BuildSysPro.Utilities.Time.TimeElapsedFromJanuary1st

Information

Hypothesis and equations

This function calculates the elapsed time in seconds since January 1st of the year.

As input, the date is entered at t=0s (of the simulation) in the form dd/mm_hh:mm:ss.

The days, months, hours, minutes and seconds are entered on 2 digits separated by exactly one any character.

As output, the elapsed time in seconds within the year from the 01/01 0:00:00.

This time is in the range [0 s; 31536000s[.

Bibliography

none

Instructions for use

none

Known limits / Use precautions

none

Validations

Validated function - Hassan BOUIA 03/2013.

--------------------------------------------------------------
Licensed by EDF under a 3-clause BSD-license
Copyright © EDF 2009 - 2023
BuildSysPro version 3.6.0
Author : Hassan BOUIA, EDF (2013)
--------------------------------------------------------------

Interface

function TimeElapsedFromJanuary1st
  input String date = "01/01_00:00:00" "Date at t=0s (start of the simulation) in the form de dd/mm_hh:mm:ss";
  output Modelica.Units.SI.Time Instant0 "Elapsed time in seconds since 01/01_00:00:00";
end TimeElapsedFromJanuary1st;

Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos