mtime 1.2.2
|
Namespaces | |
module | mtime_calendar |
Provides the calendar to the users, abstracting the different calendars available. | |
module | mtime_julianday |
Julian Day Calendar and some operations supported on julian dates. | |
module | mtime_date |
Date and some operations supported on Date. | |
module | mtime_time |
Time and some operations supported on Time. | |
module | mtime_datetime |
DateTime and some operations supported on DateTime. | |
module | mtime_timedelta |
TimeDelta and some operations supported on TimeDelta. | |
module | mtime_events |
Definition of the basic event type and its methods. | |
module | mtime_eventgroups |
Event-groups which contains a list of events. | |
module | mtime_utilities |
Support for handling ISO 8601:2004 repeated time interval strings. | |
Functions | |
recursive subroutine, public | mtime_calendar::calendartostring (string, errno) |
Initialize a new calendar. | |
recursive subroutine, public | mtime_juliandelta::deallocatejuliandelta (my_juliandelta) |
destructor for a Julian delta | |
recursive subroutine | mtime_julianday::assignment(=)::replacejulianday (dest, src) |
recursive type(julianday) function, target | mtime_julianday::operator(+)::addjuliandeltatojulianday (op1, op2) |
recursive type(julianday) function, target | mtime_julianday::operator(+)::addjuliandaytojuliandelta (op2, op1) |
recursive type(juliandelta) function, target | mtime_julianday::operator(-)::subtractjuliandayfromjulianday (op1, op2) |
mtime_julianday::operator(>)::julianday_gt | |
mtime_julianday::operator(<)::julianday_lt | |
mtime_julianday::operator(<=)::julianday_lt_or_eq | |
mtime_julianday::operator(>=)::julianday_gt_or_eq | |
mtime_julianday::operator(==)::julianday_eq | |
mtime_julianday::operator(/=)::julianday_ne | |
recursive type(julianday) function, pointer, public | mtime_julianday::newjulianday (day, ms, errno) |
construct a new Julian date | |
recursive subroutine, public | mtime_julianday::deallocatejulianday (my_julianday) |
destructor for a Julian date | |
recursive subroutine, public | mtime_julianday::juliandaytostring (my_julianday, string, errno) |
get Julian day as a string. | |
recursive type(date) function, pointer | mtime_date::newdate::newdatefromstring (string, errno) |
construct a new date | |
recursive type(date) function, pointer | mtime_date::newdate::newdatefromraw (year, month, day, errno) |
construct a new date from raw date | |
recursive type(date) function, pointer | mtime_date::newdate::newdatefromraw_yi8 (year, month, day, errno) |
construct a new date from raw date | |
recursive type(date) function, pointer | mtime_date::newdate::newdatefromconstructandcopy (src, errno) |
construct a new date from an existing by construct and copy | |
recursive subroutine, public | mtime_date::deallocatedate (my_date) |
destructor for a date | |
recursive subroutine, public | mtime_date::replacedate (dest, src, errno) |
repace an existing date by a given one | |
recursive subroutine, public | mtime_date::datetostring (my_date, string, errno) |
Get Date as an extended string. | |
recursive subroutine, public | mtime_date::datetoposixstring (my_date, string, fmtstr, errno) |
Get date and return as a string. | |
recursive type(time) function, pointer | mtime_time::newtime::newtimefromstring (string, errno) |
recursive type(time) function, pointer | mtime_time::newtime::newtimefromraw (hour, minute, second, ms, errno) |
recursive type(time) function, pointer | mtime_time::newtime::newtimefromconstructandcopy (src, errno) |
recursive subroutine, public | mtime_time::deallocatetime (my_time) |
Destructor of Time. | |
recursive subroutine, public | mtime_time::replacetime (dest, src, errno) |
COPY a time object. | |
recursive subroutine, public | mtime_time::timetostring (my_time, string, errno) |
Get time as an extended string. | |
recursive subroutine, public | mtime_time::timetoposixstring (my_time, string, fmtstr, errno) |
Get time as a Posix formated string. | |
recursive type(datetime) function, pointer | mtime_datetime::newdatetime::newdatetimefromstring (string, errno) |
recursive type(datetime) function, pointer | mtime_datetime::newdatetime::newdatetimefromraw (year, month, day, hour, minute, second, ms, errno) |
recursive type(datetime) function, pointer | mtime_datetime::newdatetime::newdatetimefromraw_yi8 (year, month, day, hour, minute, second, ms, errno) |
recursive type(datetime) function, pointer | mtime_datetime::newdatetime::newdatetimefromconstructandcopy (src, errno) |
recursive type(datetime) function, pointer | mtime_datetime::min::datetime_min (a, b) |
recursive type(datetime) function, pointer | mtime_datetime::max::datetime_max (a, b) |
recursive subroutine | mtime_datetime::assignment(=)::replacedatetime (dest, src) |
mtime_datetime::operator(>)::datetime_gt | |
mtime_datetime::operator(<)::datetime_lt | |
mtime_datetime::operator(<=)::datetime_lt_or_eq | |
mtime_datetime::operator(>=)::datetime_gt_or_eq | |
mtime_datetime::operator(==)::datetime_eq | |
mtime_datetime::operator(/=)::datetime_ne | |
recursive subroutine, public | mtime_datetime::deallocatedatetime (my_datetime) |
Destructor of DateTime. | |
recursive subroutine, public | mtime_datetime::datetimetostring (my_datetime, string, errno) |
Get DateTime as a string. | |
recursive subroutine, public | mtime_datetime::datetimetoposixstring (my_datetime, string, fmtstr, errno) |
Get DateTime in 'struct tm' format and return as a string. | |
recursive integer(c_int) function, public | mtime_datetime::getnoofdaysinmonthdatetime (dt, errno) |
Get nod (number of Days) in the month of DateTime. | |
recursive integer(c_int) function, public | mtime_datetime::getnoofdaysinyeardatetime (dt, errno) |
Get number of days in the Year of DateTime. | |
recursive integer(c_int) function, public | mtime_datetime::getdayofyearfromdatetime (dt, errno) |
Get the 'day-of-year' value of a DateTime. | |
recursive integer(c_int64_t) function, public | mtime_datetime::getnoofsecondselapsedinmonthdatetime (dt, errno) |
Get number of seconds elapsed in the month of DateTime. | |
recursive integer(c_int) function, public | mtime_datetime::getnoofsecondselapsedindaydatetime (dt, errno) |
Get number of seconds elapsed in the day of DateTime. | |
recursive subroutine, public | mtime_datetime::getjuliandayfromdatetime (dt, jd, errno) |
Get the Julian Day from DateTime. | |
recursive subroutine, public | mtime_datetime::getdatetimefromjulianday (jd, dt, errno) |
Get the DateTime from Julian Day. | |
recursive type(timedelta) function, pointer | mtime_timedelta::newtimedelta::newtimedeltafromstring (string, errno) |
recursive type(timedelta) function, pointer | mtime_timedelta::newtimedelta::newtimedeltafromraw (sign, year, month, day, hour, minute, second, ms, errno) |
recursive type(timedelta) function, pointer | mtime_timedelta::newtimedelta::newtimedeltafromraw_yi8 (sign, year, month, day, hour, minute, second, ms, errno) |
recursive type(timedelta) function, pointer | mtime_timedelta::newtimedelta::newtimedeltafromconstructandcopy (src, errno) |
recursive type(datetime) function, target | mtime_timedelta::operator(+)::addtimedeltatodatetime (op1, op2) |
recursive type(datetime) function, target | mtime_timedelta::operator(+)::adddatetimetotimedelta (op2, op1) |
recursive type(date) function, target | mtime_timedelta::operator(+)::addtimedeltatodate (op1, op2) |
recursive type(date) function, target | mtime_timedelta::operator(+)::adddatetotimedelta (op2, op1) |
recursive type(timedelta) function, target | mtime_timedelta::operator(+)::elementwiseaddtimedeltatotimedelta (td1, td2) |
recursive type(timedelta) function, target | mtime_timedelta::operator(-)::gettimedeltafromdate (op1, op2) |
Get the TimeDelta between two Dates op1 and op2 as (op1-op22). | |
recursive type(timedelta) function, target | mtime_timedelta::operator(-)::gettimedeltafromdatetime (op1, op2) |
Get the TimeDelta between two DateTimes op1 and op2 as (op1-op2). | |
recursive type(timedelta) function, target | mtime_timedelta::operator(*)::elementwisescalarmultiplytimedelta (base_td, ilambda) |
recursive type(timedelta) function, target | mtime_timedelta::operator(*)::elementwisescalarmultiplytimedeltainv (ilambda, base_td) |
recursive type(timedelta) function, target | mtime_timedelta::operator(*)::elementwisescalarmultiplytimedelta_long (base_td, lambda) |
recursive type(timedelta) function, target | mtime_timedelta::operator(*)::elementwisescalarmultiplytimedeltainv_long (lambda, base_td) |
recursive type(timedelta) function, target | mtime_timedelta::operator(*)::elementwisescalarmultiplytimedelta_real (base_td, lambda) |
mtime_timedelta::operator(>)::timedelta_gt | |
mtime_timedelta::operator(<)::timedelta_lt | |
mtime_timedelta::operator(<=)::timedelta_lt_or_eq | |
mtime_timedelta::operator(>=)::timedelta_gt_or_eq | |
mtime_timedelta::operator(==)::timedelta_eq | |
mtime_timedelta::operator(/=)::timedelta_ne | |
recursive subroutine | mtime_timedelta::getptstringfromseconds::getptstringfromsecondsint (s, string, errno) |
recursive subroutine | mtime_timedelta::getptstringfromseconds::getptstringfromsecondsfloat (s, string, errno) |
recursive subroutine | mtime_timedelta::getptstringfromseconds::getptstringfromsecondsdouble (s, string, errno) |
recursive subroutine, public | mtime_timedelta::deallocatetimedelta (my_timedelta) |
Destructor of TimeDelta. | |
recursive type(timedelta) function, target, public | mtime_timedelta::gettimedeltafromdate (op1, op2) |
Get the TimeDelta between two Dates op1 and op2 as (op1-op22). | |
recursive type(timedelta) function, target, public | mtime_timedelta::gettimedeltafromdatetime (op1, op2) |
Get the TimeDelta between two DateTimes op1 and op2 as (op1-op2). | |
recursive integer(c_int64_t) function, public | mtime_timedelta::gettotalmillisecondstimedelta (td, dt, errno) |
Get total number of milliseconds in timedelta. | |
recursive integer(c_int64_t) function, public | mtime_timedelta::gettotalsecondstimedelta (td, dt, errno) |
Get total number of seconds in timedelta. | |
recursive subroutine, public | mtime_timedelta::timedeltatostring (my_timedelta, string, errno) |
Get TimeDelta as an extended string. | |
recursive integer(c_int64_t) function, public | mtime_timedelta::modulotimedelta (a, p, quot) |
Returns modulo(a,p) and the quotient. | |
recursive subroutine, public | mtime_timedelta::getptstringfromms (ms, string, errno) |
Return a PT String corresponding to arbitrary number of milliseconds. | |
recursive subroutine, public | mtime_timedelta::getptstringfromminutes (m, string, errno) |
Return a PT String corresponding to arbitrary number of minutes. | |
recursive subroutine, public | mtime_timedelta::getptstringfromhours (h, string, errno) |
Return a PT String corresponding to arbitrary number of Hours. | |
recursive subroutine, public | mtime_timedelta::timedeltatojuliandelta (td, dt, jd) |
Convert time delta to "Julian calendar delta". | |
recursive subroutine, public | mtime_timedelta::dividetimedeltainseconds (dividend, divisor, quotient, errna) |
division by seconds. | |
recursive subroutine, public | mtime_timedelta::dividetwodatetimediffsinseconds (dt1_dividend, dt2_dividend, dt1_divisor, dt2_divisor, denominator, quotient) |
division of two differences in datetimes. | |
recursive subroutine, public | mtime_timedelta::dividedatetimedifferenceinseconds (dt1, dt2, divisor, quotient, errna) |
division of an datetime interval by seconds. | |
recursive type(event) function, pointer | mtime_events::newevent::neweventwithstring (name, referencedate, firstdate, lastdate, interval, offset, errno) |
recursive type(event) function, pointer | mtime_events::newevent::neweventwithdatatypes (name, referencedate, firstdate, lastdate, interval, offset, errno) |
recursive type(event) function, pointer | mtime_events::newevent::constructandcopyevent (my_event, errno) |
recursive subroutine, public | mtime_events::deallocateevent (my_event) |
Destructor of Event. | |
recursive subroutine, public | mtime_events::eventtostring (my_event, string, errno) |
Get Event as a string. | |
recursive logical(c_bool) function, public | mtime_events::iscurrenteventactive (my_event, my_datetime, plus_slack, minus_slack) |
Check if this event is active by comparing event's trigger time with current_dt. | |
recursive logical(c_bool) function, public | mtime_events::iseventnextinnextday (my_event) |
Checks, if next event is on a new day. | |
recursive logical(c_bool) function, public | mtime_events::iseventnextinnextmonth (my_event) |
Checks, if next event is in a new month. | |
recursive logical(c_bool) function, public | mtime_events::iseventnextinnextyear (my_event) |
Checks, if next event is in a new year. | |
recursive subroutine, public | mtime_events::gettriggernexteventatdatetime (my_event, my_currentdatetime, my_datetime, errno) |
Get the Datetime when 'this' event will be triggered next. | |
recursive subroutine, public | mtime_events::gettriggeredpreviouseventatdatetime (my_event, my_datetime, errno) |
Get the Datetime when 'this' event will be triggered last. | |
recursive integer(c_int64_t) function, public | mtime_events::geteventid (my_event) |
get the event id | |
recursive subroutine, public | mtime_events::geteventname (my_event, string, errno) |
get the event name | |
recursive type(datetime) function, pointer, public | mtime_events::geteventreferencedatetime (my_event) |
get the event reference date | |
recursive type(datetime) function, pointer, public | mtime_events::geteventfirstdatetime (my_event) |
get the event first date | |
recursive type(datetime) function, pointer, public | mtime_events::geteventlastdatetime (my_event) |
get the event last date | |
recursive type(timedelta) function, pointer, public | mtime_events::geteventinterval (my_event) |
get the event interval | |
recursive logical(c_bool) function, public | mtime_events::getnexteventisfirst (my_event) |
Check if event is first. | |
recursive logical(c_bool) function, public | mtime_events::geteventisfirstinday (my_event) |
Check if event is first in day. | |
recursive logical(c_bool) function, public | mtime_events::geteventisfirstinmonth (my_event) |
Check if event is first in month. | |
recursive logical(c_bool) function, public | mtime_events::geteventisfirstinyear (my_event) |
Check if event is first in year. | |
recursive logical(c_bool) function, public | mtime_events::geteventislastinday (my_event) |
Check if event is last in day. | |
recursive logical(c_bool) function, public | mtime_events::geteventislastinmonth (my_event) |
Check if event is last in month. | |
recursive logical(c_bool) function, public | mtime_events::geteventislastinyear (my_event) |
Check if event is last in year. | |
recursive subroutine, public | mtime_eventgroups::deallocateeventgroup (my_eventgroup) |
Destructor of EventGroup. | |
recursive logical function, public | mtime_eventgroups::addeventtoeventgroup (my_event, my_eventgroup) |
Add new event to an eventgroup. | |
recursive logical function, public | mtime_eventgroups::removeeventfromeventgroup (my_name, my_eventgroup) |
Remove event from eventgroup. CRITICAL: Also, deallocate the event. | |
recursive integer(c_int64_t) function, public | mtime_eventgroups::geteventgroupid (my_eventgroup) |
Get event group id. | |
recursive subroutine, public | mtime_eventgroups::geteventgroupname (my_eventgroup, string, errno) |
get the event group name | |
recursive type(event) function, pointer, public | mtime_eventgroups::getfirsteventfromeventgroup (my_eventgroup) |
get the first event in event group | |
recursive type(event) function, pointer, public | mtime_eventgroups::getnexteventfromeventgroup (my_event) |
get the next event in an event group an event belongs to | |
recursive integer function, public | mtime_utilities::getrepetitions (repetitionstring) |
Extract number of repetitions from repetition string part. | |
recursive subroutine, public | mtime_utilities::splitrepetitionstring (recurringtimeinterval, repetitor, start, end, duration, lrepetitor, lstart, lend, lduration) |
Split ISO 8601:2004 repeated time interval strings into base components. | |
This module documents the Fortran language bindings
interface mtime_julianday::operator(+) |
interface mtime_julianday::operator(-) |
Public Member Functions | |
recursive type(juliandelta) function, target | subtractjuliandayfromjulianday (op1, op2) |
interface mtime_julianday::operator(>) |
Public Member Functions | |
julianday_gt | |
interface mtime_julianday::operator(<) |
Public Member Functions | |
julianday_lt | |
interface mtime_julianday::operator(<=) |
Public Member Functions | |
julianday_lt_or_eq | |
interface mtime_julianday::operator(>=) |
Public Member Functions | |
julianday_gt_or_eq | |
interface mtime_julianday::operator(==) |
Public Member Functions | |
julianday_eq | |
interface mtime_julianday::operator(/=) |
Public Member Functions | |
julianday_ne | |
interface mtime_datetime::min |
Public Member Functions | |
recursive type(datetime) function, pointer | datetime_min (a, b) |
interface mtime_datetime::max |
Public Member Functions | |
recursive type(datetime) function, pointer | datetime_max (a, b) |
interface mtime_datetime::operator(>) |
Public Member Functions | |
datetime_gt | |
interface mtime_datetime::operator(<) |
Public Member Functions | |
datetime_lt | |
interface mtime_datetime::operator(<=) |
Public Member Functions | |
datetime_lt_or_eq | |
interface mtime_datetime::operator(>=) |
Public Member Functions | |
datetime_gt_or_eq | |
interface mtime_datetime::operator(==) |
Public Member Functions | |
datetime_eq | |
interface mtime_datetime::operator(/=) |
Public Member Functions | |
datetime_ne | |
interface mtime_timedelta::operator(+) |
Public Member Functions | |
recursive type(datetime) function, target | addtimedeltatodatetime (op1, op2) |
recursive type(datetime) function, target | adddatetimetotimedelta (op2, op1) |
recursive type(date) function, target | addtimedeltatodate (op1, op2) |
recursive type(date) function, target | adddatetotimedelta (op2, op1) |
recursive type(timedelta) function, target | elementwiseaddtimedeltatotimedelta (td1, td2) |
interface mtime_timedelta::operator(-) |
Public Member Functions | |
recursive type(timedelta) function, target | gettimedeltafromdate (op1, op2) |
Get the TimeDelta between two Dates op1 and op2 as (op1-op22). | |
recursive type(timedelta) function, target | gettimedeltafromdatetime (op1, op2) |
Get the TimeDelta between two DateTimes op1 and op2 as (op1-op2). | |
interface mtime_timedelta::operator(*) |
Public Member Functions | |
recursive type(timedelta) function, target | elementwisescalarmultiplytimedelta (base_td, ilambda) |
recursive type(timedelta) function, target | elementwisescalarmultiplytimedeltainv (ilambda, base_td) |
recursive type(timedelta) function, target | elementwisescalarmultiplytimedelta_long (base_td, lambda) |
recursive type(timedelta) function, target | elementwisescalarmultiplytimedeltainv_long (lambda, base_td) |
recursive type(timedelta) function, target | elementwisescalarmultiplytimedelta_real (base_td, lambda) |
interface mtime_timedelta::operator(>) |
Public Member Functions | |
timedelta_gt | |
interface mtime_timedelta::operator(<) |
Public Member Functions | |
timedelta_lt | |
interface mtime_timedelta::operator(<=) |
Public Member Functions | |
timedelta_lt_or_eq | |
interface mtime_timedelta::operator(>=) |
Public Member Functions | |
timedelta_gt_or_eq | |
interface mtime_timedelta::operator(==) |
Public Member Functions | |
timedelta_eq | |
interface mtime_timedelta::operator(/=) |
Public Member Functions | |
timedelta_ne | |
interface mtime_timedelta::getptstringfromseconds |
Public Member Functions | |
recursive subroutine | getptstringfromsecondsint (s, string, errno) |
recursive subroutine | getptstringfromsecondsfloat (s, string, errno) |
recursive subroutine | getptstringfromsecondsdouble (s, string, errno) |
recursive logical function, public mtime_eventgroups::addeventtoeventgroup | ( | type(event), intent(in), target | my_event, |
type(eventgroup), intent(inout), target | my_eventgroup ) |
Add new event to an eventgroup.
my_event | A reference to type event. The event to be added. |
my_eventgroup | A reference to type eventgroup. The eventgroup where the event is added. |
recursive subroutine, public mtime_calendar::calendartostring | ( | character(len=max_calendar_str_len), intent(out) | string, |
integer, optional | errno ) |
Initialize a new calendar.
setCalendar is done at the very begining to select one of the provided calendar libraries. It intializes the calendar to one of:
The calendar type and hence it's behaviour (Calendar to Julian conversion and vice versa) is fixed for the lifetime of the selected calendar. Attempts to change the calendar type on the fly is discouraged. The lib has built-in checks to reject change attempts at run time. However, a calendar can be "re-initialized" after calling resetCalendar(), but this is not advised.
MANTRA: Know what you are doing before you do it and do it right the first time.
convert the calendar identifier into a human readable string
[out] | string | the calendar type verbose |
[out] | errno | optional, error message |
recursive subroutine, public mtime_datetime::datetimetoposixstring | ( | type(datetime), intent(in), target | my_datetime, |
character(len=max_datetime_str_len) | string, | ||
character(len=*) | fmtstr, | ||
integer, optional | errno ) |
Get DateTime in 'struct tm' format and return as a string.
Only dates between and including 1582-10-15 TO 9999-12-31 supported.
my_datetime | An object of type datetime. The datetime to be converted to string. | |
string | String where datetime is to be written. | |
fmtstr | Desired Format string. CRITICAL: Inappropriate fmt string will cause dump. | |
[out] | errno | optional, error message |
recursive subroutine, public mtime_datetime::datetimetostring | ( | type(datetime), intent(in), target | my_datetime, |
character(len=max_datetime_str_len) | string, | ||
integer, optional | errno ) |
Get DateTime as a string.
datetimeToString returns a string in IS08601 compliant (and extended) format.
[in] | my_datetime | A pointer to struct _datetime. The datetime to be converted to string. |
[out] | string | String where datetime is to be written. |
[out] | errno | optional, error message |
recursive subroutine, public mtime_date::datetoposixstring | ( | type(date), pointer | my_date, |
character(len=max_date_str_len) | string, | ||
character(len=*) | fmtstr, | ||
integer, optional | errno ) |
Get date and return as a string.
Only dates between and including 1582-10-15 TO 9999-12-31 supported.
[in] | my_date | A pointer to type date. The date to be converted to string. |
[out] | string | String where date is to be written. |
[in] | fmtstr | Desired Format string. CRITICAL: Inappropriate fmt string will cause dump. |
[out] | errno | optional, error message |
recursive subroutine, public mtime_date::datetostring | ( | type(date), pointer | my_date, |
character(len=max_date_str_len) | string, | ||
integer, optional | errno ) |
Get Date as an extended string.
DateToString returns a string in IS08601 compliant (and extended) format.
[in] | my_date | A pointer to type date. The date to be converted to string. |
[out] | string | String where date is to be written. |
[out] | errno | Optional, error message |
recursive subroutine, public mtime_date::deallocatedate | ( | type(date), pointer | my_date | ) |
destructor for a date
[in] | my_date | a pointer of type(date) |
recursive subroutine, public mtime_datetime::deallocatedatetime | ( | type(datetime), pointer | my_datetime | ) |
Destructor of DateTime.
my_datetime | A pointer to type datetime. my_datetime is deallocated. |
recursive subroutine, public mtime_events::deallocateevent | ( | type(event), pointer | my_event | ) |
Destructor of Event.
my_event | A pointer to type event. my_event is deallocated. |
WARNING: If my_event was added to a group, this should never be called; use removeEventFromEventGroup instead.
recursive subroutine, public mtime_eventgroups::deallocateeventgroup | ( | type(eventgroup), pointer | my_eventgroup | ) |
Destructor of EventGroup.
[in] | my_eventgroup | A pointer to type eventGroup. my_eventgroup is deallocated. |
recursive subroutine, public mtime_julianday::deallocatejulianday | ( | type(julianday), pointer | my_julianday | ) |
destructor for a Julian date
my_julianday | a pointer of type(julianday) |
recursive subroutine, public mtime_time::deallocatetime | ( | type(time), pointer | my_time | ) |
Destructor of Time.
my_time | A pointer to type time. my_time is deallocated. |
recursive subroutine, public mtime_timedelta::deallocatetimedelta | ( | type(timedelta), pointer | my_timedelta | ) |
Destructor of TimeDelta.
my_timedelta | A pointer to typetimedelta. my_timedelta is deallocated. |
recursive subroutine, public mtime_timedelta::dividedatetimedifferenceinseconds | ( | type(datetime), intent(in), target | dt1, |
type(datetime), intent(in), target | dt2, | ||
type(timedelta), intent(in), target | divisor, | ||
type(divisionquotienttimespan), intent(out), target | quotient, | ||
integer, intent(out), optional | errna ) |
division of an datetime interval by seconds.
the datetime interval is calculated by dt1-dt2.
[in] | dt1 | A pointer to type datetime |
[in] | dt2 | A pointer to type datetime |
[in] | divisor | A pointer to type timedelta |
[out] | quotient | A pointer to type divisionquotienttimespan |
recursive subroutine, public mtime_timedelta::dividetimedeltainseconds | ( | type(timedelta), intent(in), target | dividend, |
type(timedelta), intent(in), target | divisor, | ||
type(divisionquotienttimespan), intent(out), target | quotient, | ||
integer, intent(out), optional | errna ) |
division by seconds.
[in] | dividend | A pointer to type timedelta |
[in] | divisor | A pointer to type timedelta |
[out] | quotient | A pointer to type divisionquotienttimespan |
recursive subroutine, public mtime_timedelta::dividetwodatetimediffsinseconds | ( | type(datetime), intent(in), target | dt1_dividend, |
type(datetime), intent(in), target | dt2_dividend, | ||
type(datetime), intent(in), target | dt1_divisor, | ||
type(datetime), intent(in), target | dt2_divisor, | ||
integer(c_int64_t), intent(out), target | denominator, | ||
type(divisionquotienttimespan), intent(out), target | quotient ) |
division of two differences in datetimes.
dt1_dividend,dt2_dividend,dt1_divisor,dt2_divisor | Reference date (a pointer to struct _datetime). |
intvlsec | Interval given in seconds. |
recursive subroutine, public mtime_events::eventtostring | ( | type(event), intent(in), pointer | my_event, |
character(len=max_eventname_str_len), intent(out) | string, | ||
integer, intent(out), optional | errno ) |
Get Event as a string.
[in] | my_event | A pointer to type event. The event to be converted to string. |
[out] | string | String where event is to be written. |
[out] | errno | optional, error message |
recursive subroutine, public mtime_datetime::getdatetimefromjulianday | ( | type(julianday), intent(in), target | jd, |
type(datetime), intent(out), target | dt, | ||
integer, optional | errno ) |
Get the DateTime from Julian Day.
The routine getDateTimeFromJulianDay returns the equivalent DateTime to Julian date. Internally it calls translation routines based on Calendar type.
[in] | jd | A pointer to type julianday. The JD's value is converted to julian day value. |
[out] | dt | A pointer to type datetime. The DT where the converted value is stored. |
[out] | errno | optional, error message |
recursive integer(c_int) function, public mtime_datetime::getdayofyearfromdatetime | ( | type(datetime), target | dt, |
integer, optional | errno ) |
Get the 'day-of-year' value of a DateTime.
Routine getDayOfYearFromDateTime returns Day of Year for the DateTime. This routine supports all Calendar types.
For eg. the day of year value for 2001-10-15T00:00:00.000 will be 288 for Gregorian Calendar. Similarly, this value will be 285 for Calendar of type 360 day-Calendar.
[in] | dt | A pointer to type datetime. Retrieve the 'day-of-year' from this DT object. |
[out] | errno | optional, error message |
recursive type(datetime) function, pointer, public mtime_events::geteventfirstdatetime | ( | type(event), intent(in), pointer | my_event | ) |
get the event first date
[in] | my_event | A pointer of type event. |
recursive integer(c_int64_t) function, public mtime_eventgroups::geteventgroupid | ( | type(eventgroup), intent(in), pointer | my_eventgroup | ) |
Get event group id.
[in] | my_eventgroup | A pointer to type eventgroup. |
recursive subroutine, public mtime_eventgroups::geteventgroupname | ( | type(eventgroup), intent(in), pointer | my_eventgroup, |
character(len=max_groupname_str_len) | string, | ||
integer, optional | errno ) |
get the event group name
[in] | my_eventgroup | A pointer of type event. |
[out] | string | the name of the event group |
[out] | errno | optional, error message |
recursive integer(c_int64_t) function, public mtime_events::geteventid | ( | type(event), pointer | my_event | ) |
get the event id
[in] | my_event | A pointer of type event. |
recursive type(timedelta) function, pointer, public mtime_events::geteventinterval | ( | type(event), intent(in), pointer | my_event | ) |
get the event interval
[in] | my_event | A pointer of type event. |
recursive logical(c_bool) function, public mtime_events::geteventisfirstinday | ( | type(event), intent(in), target | my_event | ) |
Check if event is first in day.
[in] | my_event | A reference of type event. |
recursive logical(c_bool) function, public mtime_events::geteventisfirstinmonth | ( | type(event), intent(in), target | my_event | ) |
Check if event is first in month.
[in] | my_event | A reference of type event. |
recursive logical(c_bool) function, public mtime_events::geteventisfirstinyear | ( | type(event), intent(in), target | my_event | ) |
Check if event is first in year.
[in] | my_event | A reference of type event. |
recursive logical(c_bool) function, public mtime_events::geteventislastinday | ( | type(event), intent(in), target | my_event | ) |
Check if event is last in day.
[in] | my_event | A reference of type event. |
recursive logical(c_bool) function, public mtime_events::geteventislastinmonth | ( | type(event), intent(in), target | my_event | ) |
Check if event is last in month.
[in] | my_event | A reference of type event. |
recursive logical(c_bool) function, public mtime_events::geteventislastinyear | ( | type(event), intent(in), target | my_event | ) |
Check if event is last in year.
[in] | my_event | A reference of type event. |
recursive type(datetime) function, pointer, public mtime_events::geteventlastdatetime | ( | type(event), intent(in), pointer | my_event | ) |
get the event last date
[in] | my_event | A pointer of type event. |
recursive subroutine, public mtime_events::geteventname | ( | type(event), intent(in), pointer | my_event, |
character(len=max_eventname_str_len), intent(out) | string, | ||
integer, optional | errno ) |
get the event name
[in] | my_event | A pointer of type event. |
[out] | string | the name of the event |
[out] | errno | optional, error message |
recursive type(datetime) function, pointer, public mtime_events::geteventreferencedatetime | ( | type(event), intent(in), pointer | my_event | ) |
get the event reference date
[in] | my_event | A pointer of type event. |
recursive type(event) function, pointer, public mtime_eventgroups::getfirsteventfromeventgroup | ( | type(eventgroup), intent(in), pointer | my_eventgroup | ) |
get the first event in event group
[in] | my_eventgroup | A pointer of type eventgroup. |
recursive subroutine, public mtime_datetime::getjuliandayfromdatetime | ( | type(datetime), target | dt, |
type(julianday), target | jd, | ||
integer, optional | errno ) |
Get the Julian Day from DateTime.
The routine getJulianDayFromDateTime returns the equivalent Julian date to DateTime. Internally it calls translation routines based on Calendar type.
[in] | dt | A pointer to type datetime. The DT's value is converted to julian day value. |
[out] | jd | A pointer to type julianday. JD where the converted value is stored. |
[out] | errno | optional, error message |
recursive type(event) function, pointer, public mtime_eventgroups::getnexteventfromeventgroup | ( | type(event), intent(in), pointer | my_event | ) |
get the next event in an event group an event belongs to
[in] | my_event | A pointer of type event. |
recursive logical(c_bool) function, public mtime_events::getnexteventisfirst | ( | type(event), intent(in), target | my_event | ) |
Check if event is first.
[in] | my_event | A reference of type event. |
recursive integer(c_int) function, public mtime_datetime::getnoofdaysinmonthdatetime | ( | type(datetime), target | dt, |
integer, optional | errno ) |
Get nod (number of Days) in the month of DateTime.
Routine getNoOfDaysInMonthDateTime returns number of days in the month of DateTime. This routine supports all calendar types.
For eg. the number of days for 2001-10-15T00:00:00.000 will be 31 for Gregorian Calendar. Similarly, this value will be 30 for Calendar of type 360 day-Calendar.
[in] | dt | A pointer to type datetime. |
[out] | errno | optional, error message |
recursive integer(c_int) function, public mtime_datetime::getnoofdaysinyeardatetime | ( | type(datetime), target | dt, |
integer, optional | errno ) |
Get number of days in the Year of DateTime.
Routine getNoOfDaysInYearDateTime returns number of days in the Year of DateTime. This routine supports all calendar types.
Number of days returned will depend on the calendar type and if applicable, leap v/s non leap year.
[in] | dt | A pointer to type datetime. |
[out] | errno | optional, error message |
recursive integer(c_int) function, public mtime_datetime::getnoofsecondselapsedindaydatetime | ( | type(datetime), target | dt, |
integer, optional | errno ) |
Get number of seconds elapsed in the day of DateTime.
[in] | dt | A pointer to type datetime. |
[out] | errno | optional, error message |
recursive integer(c_int64_t) function, public mtime_datetime::getnoofsecondselapsedinmonthdatetime | ( | type(datetime), target | dt, |
integer, optional | errno ) |
Get number of seconds elapsed in the month of DateTime.
[in] | dt | A pointer to type datetime. |
[out] | errno | optional, error message |
recursive subroutine, public mtime_timedelta::getptstringfromhours | ( | integer(c_int64_t) | h, |
character(len=*) | string, | ||
integer, optional | errno ) |
Return a PT String corresponding to arbitrary number of Hours.
getPTStringFromHours() translates hour values to ISO 8601 compliant timedelta string. Conversion of h >= 24 and ms <= -24 not supported.
[in] | h | An int64_t value to be translated. |
[out] | string | Translated string is written here. |
recursive subroutine, public mtime_timedelta::getptstringfromminutes | ( | integer(c_int64_t) | m, |
character(len=*) | string, | ||
integer, optional | errno ) |
Return a PT String corresponding to arbitrary number of minutes.
getPTStringFromMinutes() translates minutes values to ISO 8601 compliant timedelta string. Conversion of m >= 1440 and m <= -1440 not supported.
[in] | m | An int64_t value to be translated. |
[out] | string | Translated string is written here. |
recursive subroutine, public mtime_timedelta::getptstringfromms | ( | integer(c_int64_t), intent(in) | ms, |
character(len=*) | string, | ||
integer, optional | errno ) |
Return a PT String corresponding to arbitrary number of milliseconds.
getPTStringFromMS() translates ms values to ISO 8601 compliant timedelta string. Conversion of ms >= 86400000 and ms <= -86400000 not supported.
[in] | ms | An int64_t value to be translated. |
[out] | string | Translated string is written here. |
recursive integer function, public mtime_utilities::getrepetitions | ( | character(len=*), intent(in) | repetitionstring | ) |
Extract number of repetitions from repetition string part.
[in] | repetitionString | A repetition string starting with 'R'. A string literal can be accepted. |
recursive type(timedelta) function, target, public mtime_timedelta::gettimedeltafromdate | ( | type(date), intent(in), target | op1, |
type(date), intent(in), target | op2 ) |
Get the TimeDelta between two Dates op1 and op2 as (op1-op22).
Routine getTimeDeltaFromDate 'subtracts' two Dates and returns the TimeDelta between them. Internally, Dates are converted to DateTimes and then delta is calculated using getTimeDeltaFromDateTime().
This routine handles all supported Calendar types; i.e. the translation from Calendar date to Julian date and conversion from Julian Delta to normal TimeDetla is Calendar-type dependent. For eg. for Calendar type Gregorian, the TimeDelta between 2001-02-01 and 2001-01-01 will be 1 month. Similarly, for Calendar of type 360-Day-Calendar, the TimeDelta will be 1 month. It must be noted however, that the two dates differ by 31 and 30 days respectively.
op1 | A pointer to type date. |
op2 | A pointer to type date. |
recursive type(timedelta) function, target mtime_timedelta::operator(-)::gettimedeltafromdate | ( | type(date), intent(in), target | op1, |
type(date), intent(in), target | op2 ) |
Get the TimeDelta between two Dates op1 and op2 as (op1-op22).
Routine getTimeDeltaFromDate 'subtracts' two Dates and returns the TimeDelta between them. Internally, Dates are converted to DateTimes and then delta is calculated using getTimeDeltaFromDateTime().
This routine handles all supported Calendar types; i.e. the translation from Calendar date to Julian date and conversion from Julian Delta to normal TimeDetla is Calendar-type dependent. For eg. for Calendar type Gregorian, the TimeDelta between 2001-02-01 and 2001-01-01 will be 1 month. Similarly, for Calendar of type 360-Day-Calendar, the TimeDelta will be 1 month. It must be noted however, that the two dates differ by 31 and 30 days respectively.
op1 | A pointer to type date. |
op2 | A pointer to type date. |
recursive type(timedelta) function, target, public mtime_timedelta::gettimedeltafromdatetime | ( | type(datetime), intent(in), target | op1, |
type(datetime), intent(in), target | op2 ) |
Get the TimeDelta between two DateTimes op1 and op2 as (op1-op2).
Routine getTimeDeltaFromDateTime 'subtracts' two DateTime's and returns the TimeDelta between them. Each datetime is converted to an equivalent Julian Date. Subtraction is then performed on Julian axis. The "Julian delta" is finally converted back to normal calendar delta.
This routine handles all supported Calendar types; i.e. the translation from Calendar date to Julian date and conversion from Julian Delta to normal TimeDetla is Calendar-type dependent. For eg. for Calendar type Gregorian, the TimeDelta between 2001-02-01T00:00:00.000 and 2001-01-01T00:00:00.000 will be 1 month. Similarly, for Calendar of type 360-Day-Calendar, the TimeDelta will be 1 month. It must be noted however, that the two dates differ by 31 and 30 days respectively.
op1 | A pointer to type datetime. |
op2 | A pointer to type datetime. |
recursive type(timedelta) function, target mtime_timedelta::operator(-)::gettimedeltafromdatetime | ( | type(datetime), intent(in), target | op1, |
type(datetime), intent(in), target | op2 ) |
Get the TimeDelta between two DateTimes op1 and op2 as (op1-op2).
Routine getTimeDeltaFromDateTime 'subtracts' two DateTime's and returns the TimeDelta between them. Each datetime is converted to an equivalent Julian Date. Subtraction is then performed on Julian axis. The "Julian delta" is finally converted back to normal calendar delta.
This routine handles all supported Calendar types; i.e. the translation from Calendar date to Julian date and conversion from Julian Delta to normal TimeDetla is Calendar-type dependent. For eg. for Calendar type Gregorian, the TimeDelta between 2001-02-01T00:00:00.000 and 2001-01-01T00:00:00.000 will be 1 month. Similarly, for Calendar of type 360-Day-Calendar, the TimeDelta will be 1 month. It must be noted however, that the two dates differ by 31 and 30 days respectively.
op1 | A pointer to type datetime. |
op2 | A pointer to type datetime. |
recursive integer(c_int64_t) function, public mtime_timedelta::gettotalmillisecondstimedelta | ( | type(timedelta), intent(in), target | td, |
type(datetime), intent(in), target | dt, | ||
integer, optional | errno ) |
Get total number of milliseconds in timedelta.
Routine getTotalMilliSecondsTimeDelta returns the total number of milliseconds in TimeDelta. Notice that TimeDelta is not uniquely defined but depends on the definition of corresponding DateTime. TimeDelta is first converted to corresponding delta on the Julian axis. Julian delta is finally converted to the correct millisecond value.
[in] | td | A pointer to type timedelta. Retrieve the number of milliseconds in this TD object. |
[in] | dt | A pointer to type datetime. Reference Datetime for the TD. |
[out] | errno | Optional, error message |
WARNING: TD 0 is error. If you know your TD is 0, ignore the error flag.
recursive integer(c_int64_t) function, public mtime_timedelta::gettotalsecondstimedelta | ( | type(timedelta), intent(in), target | td, |
type(datetime), intent(in), target | dt, | ||
integer, optional | errno ) |
Get total number of seconds in timedelta.
Routine getTotalSecondsTimeDelta returns the total number of seconds in TimeDelta. Notice that TimeDelta is not uniquely defined but depends on the definition of corresponding DateTime. Internally, number of seconds is calculated by calling the routine getTotalMilliSecondsTimeDelta() and then converting the millisecond value to seconds by dividing it by 1000.
[in] | td | A pointer to struct _timedelta. Retrieve the number of seconds in this TD object. |
[in] | dt | A pointer to struct _datetime. Reference Datetime for the TD. |
[out] | errno | Optional, error message |
WARNING: TD 0 is error. If you know your TD is 0, ignore the error flag.
recursive subroutine, public mtime_events::gettriggeredpreviouseventatdatetime | ( | type(event), intent(in), target | my_event, |
type(datetime), intent(out), target | my_datetime, | ||
integer, optional | errno ) |
Get the Datetime when 'this' event will be triggered last.
NOTE: If the event was never tiggered, default value of 0-01-01T00:00:00.000 is returned.
[in] | my_event | A pointer to type event. This is the event being queried. |
[out] | my_datetime | A variable of type datetime with last-trigger datetime. |
[out] | errno | optional, error message |
recursive subroutine, public mtime_events::gettriggernexteventatdatetime | ( | type(event), intent(in), target | my_event, |
type(datetime), intent(in), target | my_currentdatetime, | ||
type(datetime), intent(out), target | my_datetime, | ||
integer, intent(out), optional | errno ) |
Get the Datetime when 'this' event will be triggered next.
WARNING: The value returned is with-respect-to current_dt and not a true copy of triggerNextEventDateTime in the event data structure.
[in] | my_event | A variable of type event. This is the event being queried. |
[in] | my_currentdatetime | A variable of type datetime. The next trigger datetime is copied here. |
[out] | my_datetime | A variable of type datetime with next-trigger datetime. |
[out] | errno | optional, error message |
recursive logical(c_bool) function, public mtime_events::iscurrenteventactive | ( | type(event), intent(in), pointer | my_event, |
type(datetime), intent(in), target | my_datetime, | ||
type(timedelta), intent(in), optional, pointer | plus_slack, | ||
type(timedelta), intent(in), optional, pointer | minus_slack ) |
Check if this event is active by comparing event's trigger time with current_dt.
The current_dt must lie in event's trigger time (subject to optional specified slack: [Trigger_time - minus_slack, Trigger_time + plus_slack]. Slacks can be NULL. Always inclusive.) The lib has no built-in clock but relies on isCurrentEventActive(.) being called (polled) from the application at fixed intervals.
my_event | A pointer to type event. This is the event being tested. |
my_datetime | A variable of type datetime. This is the 'current' datetime of the system. |
plus_slack | A pointer to type timedelta. Events are triggered between [actual_trigger_time, actual_trigger_time + plus_slack]. Sign MUST be '+' |
minus_slack | A pointer to type timedelta. Events are triggered between [actual_trigger_time - minus_slack, actual_trigger_time]. Sign MUST be '+' |
recursive logical(c_bool) function, public mtime_events::iseventnextinnextday | ( | type(event), intent(in), pointer | my_event | ) |
Checks, if next event is on a new day.
[in] | my_event | A pointer to a type event |
recursive logical(c_bool) function, public mtime_events::iseventnextinnextmonth | ( | type(event), intent(in), pointer | my_event | ) |
Checks, if next event is in a new month.
[in] | my_event | A pointer to a type event |
recursive logical(c_bool) function, public mtime_events::iseventnextinnextyear | ( | type(event), intent(in), pointer | my_event | ) |
Checks, if next event is in a new year.
[in] | my_event | A pointer to a type event |
recursive subroutine, public mtime_julianday::juliandaytostring | ( | type(julianday), pointer | my_julianday, |
character(len=max_julianday_str_len), intent(out) | string, | ||
integer, optional | errno ) |
get Julian day as a string.
[in] | my_julianday | a pointer to type(julianday). The Julian day to be converted to a string |
[out] | string | the Julian day verbose |
[out] | errno | optional, error message |
recursive integer(c_int64_t) function, public mtime_timedelta::modulotimedelta | ( | type(timedelta), intent(in), target | a, |
type(timedelta), intent(in), target | p, | ||
integer(c_int64_t), intent(out), target | quot ) |
Returns modulo(a,p) and the quotient.
[in] | a | A pointer to type timedelta. |
[in] | p | A pointer to type timedelta. |
[out] | quot | The quotient of a divided by p. |
recursive type(date) function, pointer mtime_date::newdate::newdatefromconstructandcopy | ( | type(date), target | src, |
integer, optional | errno ) |
construct a new date from an existing by construct and copy
[in] | src | a pointer of type(date) |
[out] | errno | optional, error message |
recursive type(date) function, pointer mtime_date::newdate::newdatefromraw | ( | integer(c_int), intent(in) | year, |
integer(c_int), intent(in) | month, | ||
integer(c_int), intent(in) | day, | ||
integer, optional | errno ) |
construct a new date from raw date
[in] | year | the year |
[in] | month | the month |
[in] | day | the day |
[out] | errno | optional, error message |
recursive type(date) function, pointer mtime_date::newdate::newdatefromraw_yi8 | ( | integer(c_int64_t), intent(in) | year, |
integer(c_int), intent(in) | month, | ||
integer(c_int), intent(in) | day, | ||
integer, optional | errno ) |
construct a new date from raw date
[in] | year | the year |
[in] | month | the month |
[in] | day | the day |
[out] | errno | optional, error message |
recursive type(date) function, pointer mtime_date::newdate::newdatefromstring | ( | character(len=*), intent(in) | string, |
integer, optional | errno ) |
construct a new date
[in] | string | an ISO 8601 conforming date string |
[out] | errno | optional, error message |
recursive type(julianday) function, pointer, public mtime_julianday::newjulianday | ( | integer(c_int64_t), intent(in) | day, |
integer(c_int64_t), intent(in) | ms, | ||
integer, optional | errno ) |
construct a new Julian date
[in] | day | the Julian day |
[in] | ms | an integer denoting the actual milli seconds of a day |
[out] | errno | optional, error message |
recursive logical function, public mtime_eventgroups::removeeventfromeventgroup | ( | character(len=*), intent(in) | my_name, |
type(eventgroup), intent(inout), pointer | my_eventgroup ) |
Remove event from eventgroup. CRITICAL: Also, deallocate the event.
my_name | The name of event to be removed. |
my_eventgroup | A pointer to type eventgroup. The eventgroup to which this event belongs. |
recursive subroutine, public mtime_date::replacedate | ( | type(date), intent(inout), target | dest, |
type(date), intent(in), target | src, | ||
integer, optional | errno ) |
repace an existing date by a given one
[in] | src | a pointer of type(date) |
[out] | dest | a pointer of type(date) |
[out] | errno | optional, error message |
recursive subroutine, public mtime_time::replacetime | ( | type(time), intent(inout), target | dest, |
type(time), intent(in), target | src, | ||
integer, optional | errno ) |
COPY a time object.
Routine replaceTime copies the contents of source Time into a Destination Time object.
[in] | src | A pointer to type time. Copy "FROM" time object. |
[out] | dest | A pointer to type time. Copy "TO" time object. |
[out] | errno | optional, error message |
recursive subroutine, public mtime_utilities::splitrepetitionstring | ( | character(len=*), intent(in) | recurringtimeinterval, |
character(len=*), intent(out) | repetitor, | ||
character(len=*), intent(out) | start, | ||
character(len=*), intent(out) | end, | ||
character(len=*), intent(out) | duration, | ||
logical, intent(out) | lrepetitor, | ||
logical, intent(out) | lstart, | ||
logical, intent(out) | lend, | ||
logical, intent(out) | lduration ) |
Split ISO 8601:2004 repeated time interval strings into base components.
[in] | recurringTimeInterval | The string should contain an ISO 8601:2004 repeated time interval string. A string literal can be accepted. |
[out] | repetitor | Contains the repetitor part of the input string. |
[out] | start | Contains the start date part of the input string. |
[out] | end | Contains the end date part of the input string. |
[out] | duration | Contains the duration part of the input string. |
[out] | lrepetitor | Logical: true, if repetion is available |
[out] | lstart | Logical: true, if start is available |
[out] | lend | Logical: true, if end is available |
[out] | lduration | Logical: true, if duration is available |
recursive subroutine, public mtime_timedelta::timedeltatostring | ( | type(timedelta), target | my_timedelta, |
character(len=max_timedelta_str_len) | string, | ||
integer, optional | errno ) |
Get TimeDelta as an extended string.
timedeltaToString returns a string in IS08601 compliant (and extended) format.
[in] | my_timedelta | A pointer to type timedelta. The timedelta to be converted to string. |
[out] | string | String where timedelta is to be written. |
[out] | errno | optional, error message |
recursive subroutine, public mtime_time::timetoposixstring | ( | type(time), pointer | my_time, |
character(len=max_time_str_len) | string, | ||
character(len=32) | fmtstr, | ||
integer, optional | errno ) |
Get time as a Posix formated string.
[in] | my_time | A pointer to type time. The time to be converted to string. |
[out] | string | String where time is to be written. |
[in] | fmtstr | Desired Format string. CRITICAL: Inappropriate fmt string will cause dump. |
[out] | errno | optional, error message |
recursive subroutine, public mtime_time::timetostring | ( | type(time), pointer | my_time, |
character(len=max_time_str_len) | string, | ||
integer, optional | errno ) |
Get time as an extended string.
timetoString returns a string in IS08601 compliant (and extended) format.
[in] | my_time | A pointer to type time. The time to be converted to string. |
[out] | string | String where time is to be written. |
[out] | errno | optional, error message |