libsim  Versione6.3.0
elemental function, public datetime_new ( integer, intent(in), optional  year,
integer, intent(in), optional  month,
integer, intent(in), optional  day,
integer, intent(in), optional  hour,
integer, intent(in), optional  minute,
integer, intent(in), optional  msec,
integer(kind=int_ll), intent(in), optional  unixtime,
character(len=*), intent(in), optional  isodate,
character(len=*), intent(in), optional  simpledate 
)

Initialize a datetime object according to the provided arguments If no arguments are passed a missing object is created.

Notice that the optional parameter groups (year, month, hour, minute, msec), (unixtime), (isodate), (simpledate) are mutually exclusive, the results are not guaranteed if arguments of different groups are present.

Parametri
[in]yearyear a.C.; for reasons not yet investigated, only years >0 (a.C.) are allowed
[in]monthmonth, default=1 if year is present, it can also be outside the interval 1-12, the function behaves reasonably in that case
[in]dayday, default=1 if year is present, it can have non canonical values too
[in]hourhours, default=0 if year is present, it can have non canonical values too
[in]minuteminutes, default=0 if year is present, it can have non canonical values too
[in]msecmilliseconds, default=0 if year is present, it can have non canonical values too
[in]unixtimeinitialize the object to unixtime seconds after 1/1/1970, UNIX convention, notice that this is an 8-byte integer
[in]isodateinitialize the object to a date expressed as a string YYYY-MM-DD hh:mm:ss.msc, (iso format), the initial part YYYY-MM-DD is compulsory, the remaining part is optional
[in]simpledateinitialize the object to a date expressed as a string YYYYMMDDhh:mm:ss.msc, (iso format), the initial part YYYYMMDD is compulsory, the remaining part is optional

Definizione alla linea 720 del file datetime_class.F90.


Generated with Doxygen.