qtDateTime
|
Public Member Functions | |
subroutine | qtdt_s_int4arraytodate (tDate, iaDate) |
qtDT_S_IntegerArrayToDateConverts a date specification in an array into a date type. More... | |
subroutine | qtdt_s_int2arraytodate (tDate, iaDate) |
subroutine | qtdt_s_datetoint4array (iaDate, tDate) |
qtDT_S_DateToIntegerArrayConverts a date specification in an array into a date type. More... | |
subroutine | qtdt_s_datetoint2array (iaDate, tDate) |
subroutine | qtdt_s_timetodaytime (tDayTime, tTime) |
qtDT_S_TimeToDayTimeConverts a time type into a daytime type. More... | |
subroutine | qtdt_s_daytimetotime (tTime, tDayTime) |
qtDT_S_DayTimeToTimeConverts a daytime type into a time type. More... | |
subroutine qtdt_s_int4arraytodate | ( | type (qtdt_t_date), intent(out) | tDate, |
integer (qtdt_k_int4), dimension(3), intent(in) | iaDate | ||
) |
Usage:
CALL qtDT_F_IntegerArrayToDate( tDate, iaDate ) ! tDate = iaDate(:)
tDate | : the date type (result of conversion) |
iaDate | : integer array containing a date specification (/day,month,year/) to convert |
Converts a date specification in an array (/day, month, year/) into a date type.
This procedure is used to overload the assignment operator (=) to allow for assignments like
TYPE (qtDT_T_Date) :: tDate INTEGER :: day = 3, month = 8, year = 1998 INTEGER :: iaDate = (/1,4,2012/) tDate = (/day, month, year/) tDate = iaDate
subroutine qtdt_s_int2arraytodate | ( | type (qtdt_t_date), intent(out) | tDate, |
integer (qtdt_k_int2), dimension(3), intent(in) | iaDate | ||
) |
subroutine qtdt_s_datetoint4array | ( | integer (qtdt_k_int4), dimension(3), intent(out) | iaDate, |
type (qtdt_t_date), intent(in) | tDate | ||
) |
Usage:
CALL qtDT_S_DateToIntegerArray( iaDate, tDate ) ! iaDate(:) = tDate
iaDate | : integer array; result of conversion: (/day,month,year/) |
tDate | : the date type value containing a date specification to be converted |
Converts a date type value into an array (/day, month, year/).
This procedure is used to overload the assignment operator (=) to allow for assignments like
TYPE (qtDT_T_Date) :: tDate = INTEGER :: iaDate tDate = qtDT_T_Date(28,4,2014) iaDate(:) = tDate
subroutine qtdt_s_datetoint2array | ( | integer (qtdt_k_int2), dimension(3), intent(out) | iaDate, |
type (qtdt_t_date), intent(in) | tDate | ||
) |
subroutine qtdt_s_timetodaytime | ( | type (qtdt_t_daytime), intent(out) | tDayTime, |
type (qtdt_t_time), intent(in) | tTime | ||
) |
Usage:
CALL qtDT_S_TimeToDayTime( tDayTime, tTime )
tDayTime | : daytime type value |
tTime | : time type value |
Converts a time type value into a daytime type value.
This procedure is used to overload the assignment operator (=) allowing for statements like
TYPE (qtDT_T_DayTime) :: tDayTime TYPE (qtDT_T_Time) :: tTime = qtDT_T_Time(123, 40, 10, 312) tDayTime = tTime ! giving: tDayTime = qtDT_T_DayTime(5, 3, 40, 10, 312)
subroutine qtdt_s_daytimetotime | ( | type (qtdt_t_time), intent(out) | tTime, |
type (qtdt_t_daytime), intent(in) | tDayTime | ||
) |
Usage:
CALL qtDT_S_DayTimeToTime( tTime, tDayTime )
tTime | : time type value |
tDayTime | : daytime type value |
Converts a daytime type value into a time type value.
Since the time type value is restricted to a maximum value of 596:31:23:647 (see qtDT_F_TimeToIntegerMS for explanation), tDayTime days should not exceed the value of 24 days, otherwise the function will return faulty values.
This procedure is used to overload the assignment operator (=) allowing for statements like
TYPE (qtDT_T_DayTime) :: tDayTime = qtDT_T_DayTime(5, 3, 40, 10, 312) TYPE (qtDT_T_Time) :: tTime tTime = tDayTime ! giving: tTime = qtDT_T_Time(123, 40, 10, 312)