.BuildSysPro.Utilities.Time.Date

Information

Hypothesis and equations

Function computing the day number of the month in the year at the time (t0 + t) given in seconds depending on t and t0.

The year is supposed to be not bisextile.

t : calculation moment in seconds

t0: elapsed time in seconds since January 1st at t=0s of the simulation

As output, the function calculates the day number of the month in the year at (t0 + t), elapsed time in seconds since 01/01 0:00:00.

N.B. : 0 is the day number of the month on January 1st.

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 Date
  input Real t0 = 0 "Elapsed time in second at t=0";
  input Real t "Elapsed time since t=0 [s]";
  output Integer d "Number of the day in the month = 0 for the first day";
end Date;

Revisions

Hassan BOUIA 03/2013 - Mise à jour des fonctions de temps en remplacement des anciennes (optimisation temps calcul)


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