![]() |
libSUFR
a LIBrary of Some Useful Fortran Routines
|
Procedures to convert time to formatted text strings. More...
Functions/Subroutines | |
elemental character function, dimension(8) | hms (t) |
Print time as hh:mm:ss string, input in hours; Display '–:–:–' for t=0. | |
elemental character function, dimension(8) | hhms (t) |
Print time as hh:mm:ss string, input in hours; No special output for t=0. | |
elemental character function, dimension(9) | hms2 (t) |
Print time as string in hh:mm, input in hours, output between -12 and 12. | |
elemental character function, dimension(9) | ums (t) |
Print time as 00u11m22s string, input in hours. | |
elemental character function, dimension(10) | hms_s (t) |
Print time as string in hms.s, input in hours. | |
elemental character function, dimension(12) | hms_sss (t) |
Print time as string in hms.sss, input in hours. | |
elemental character function, dimension(7) | hmm (t) |
Print time as string in hm.m, input in hours. | |
elemental character function, dimension(8) | umm (t) |
Print time as string in 00u11.2m, input in hours. | |
elemental character function, dimension(5) | hm (time) |
Print time as string in hh:mm, input in hours. | |
elemental character function, dimension(9) | hm_mmm (time) |
Print time as string in hh:mm.mmm, input in hours. | |
elemental character function, dimension(5) | hhm (t) |
Print time as string in h:mm or hh:mm, input in hours; no special output for h=0. | |
elemental character function, dimension(6) | um (t) |
Print time as string in 01u23m, input in hours. | |
elemental character function, dimension(28) | wum (t) |
Print time as string in 01u23m, input in hours, web version (HTML superscripts) | |
elemental character function, dimension(30) | wumm (t) |
Print time as string in 01u23.1m, input in hours, web version (HTML superscripts) | |
elemental character function, dimension(42) | wums (t) |
Print time as 00u11m22s HTML string, input in hours. | |
elemental character function, dimension(44) | wums_s (t) |
Print time as a Dutch HTML string in 11u22m33.4s, input in hours. HTML equivalent of hms_s() | |
elemental character function, dimension(6) | hm2 (t) |
Print time as string in +/-hh:mm, input in hours, between -12 and 12. | |
elemental character function, dimension(5) | hdm (t) |
Print time as a nice string in hh.mm, so with a . in stead of : Input in hours. | |
elemental character function, dimension(8) | tms (t) |
Print time as mm:ss.s string, input in hours. | |
elemental character function, dimension(9) | tms2 (t) |
Print time as mm:ss.s string, input in hours. | |
elemental character function, dimension(8) | tmsss2 (t) |
Print time as m:ss.s string, input in hours, like tms2, but t<10 min(!) | |
Procedures to convert time to formatted text strings.
elemental character function, dimension(5) sufr_time2string::hdm | ( | real(double), intent(in) | t | ) |
Print time as a nice string in hh.mm, so with a . in stead of : Input in hours.
t | Time (h) |
hdm | Time as a nice string in hh.mm |
Definition at line 778 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, hdm(), sufr_constants::mm, sufr_constants::r2h, and sufr_angles::rev().
Referenced by hdm().
elemental character function, dimension(5) sufr_time2string::hhm | ( | real(double), intent(in) | t | ) |
Print time as string in h:mm or hh:mm, input in hours; no special output for h=0.
t | Time (h) |
hhm | Time as string in h:mm or hh:mm |
Definition at line 478 of file time2string.f90.
References sufr_kinds::double, sufr_constants::h2r, hhm(), sufr_constants::r2h, and sufr_angles::rev().
Referenced by hhm().
elemental character function, dimension(8) sufr_time2string::hhms | ( | real(double), intent(in) | t | ) |
Print time as hh:mm:ss string, input in hours; No special output for t=0.
t | Time (h) |
hhms | Time as hh:mm:ss string |
Definition at line 97 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, hhms(), sufr_constants::r2h, and sufr_angles::rev().
Referenced by hhms().
elemental character function, dimension(5) sufr_time2string::hm | ( | real(double), intent(in) | time | ) |
Print time as string in hh:mm, input in hours.
time | Time (h) |
hm | Time as string in hh:mm |
Definition at line 405 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, hm(), sufr_constants::r2h, and sufr_angles::rev().
Referenced by hm().
elemental character function, dimension(6) sufr_time2string::hm2 | ( | real(double), intent(in) | t | ) |
Print time as string in +/-hh:mm, input in hours, between -12 and 12.
t | Time (h) |
hm2 | Time as string in +/-hh:mm |
Definition at line 738 of file time2string.f90.
References sufr_kinds::double, hm2(), and sufr_angles::rv12().
Referenced by hm2().
elemental character function, dimension(9) sufr_time2string::hm_mmm | ( | real(double), intent(in) | time | ) |
Print time as string in hh:mm.mmm, input in hours.
time | Time (h) |
hm_mmm | Time as string in hh:mm.mmm |
Definition at line 442 of file time2string.f90.
References sufr_kinds::double, sufr_constants::h2r, hm_mmm(), sufr_constants::r2h, and sufr_angles::rev().
Referenced by hm_mmm().
elemental character function, dimension(7) sufr_time2string::hmm | ( | real(double), intent(in) | t | ) |
Print time as string in hm.m, input in hours.
t | Time (h) |
hmm | Time as string in hm.m |
Definition at line 326 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, hmm(), sufr_constants::r2h, and sufr_angles::rev().
Referenced by hmm().
elemental character function, dimension(8) sufr_time2string::hms | ( | real(double), intent(in) | t | ) |
Print time as hh:mm:ss string, input in hours; Display '–:–:–' for t=0.
t | Time (h) |
hms | Time as hh:mm:ss string |
Definition at line 58 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, hms(), sufr_constants::r2h, and sufr_angles::rev().
Referenced by hms().
elemental character function, dimension(9) sufr_time2string::hms2 | ( | real(double), intent(in) | t | ) |
Print time as string in hh:mm, input in hours, output between -12 and 12.
t | Time (h) |
hms2 | Time as string in hh:mm |
Definition at line 139 of file time2string.f90.
References sufr_kinds::double, hms2(), and sufr_angles::rv12().
Referenced by hms2().
elemental character function, dimension(10) sufr_time2string::hms_s | ( | real(double), intent(in) | t | ) |
Print time as string in hms.s, input in hours.
t | Time (h) |
hms_s | Time as string in hms.s |
Definition at line 232 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, hms_s(), sufr_constants::mm, sufr_constants::r2h, and sufr_angles::rev().
Referenced by hms_s().
elemental character function, dimension(12) sufr_time2string::hms_sss | ( | real(double), intent(in) | t | ) |
Print time as string in hms.sss, input in hours.
t | Time (h) |
hms_sss | Time as string in hms.sss |
Definition at line 279 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, hms_sss(), sufr_constants::mm, sufr_constants::r2h, and sufr_angles::rev().
Referenced by hms_sss().
elemental character function, dimension(8) sufr_time2string::tms | ( | real(double), intent(in) | t | ) |
Print time as mm:ss.s string, input in hours.
t | Time (h) |
tms | Time as mm:ss.s string |
Definition at line 819 of file time2string.f90.
References sufr_kinds::double, and tms().
Referenced by tms().
elemental character function, dimension(9) sufr_time2string::tms2 | ( | real(double), intent(in) | t | ) |
Print time as mm:ss.s string, input in hours.
t | Time (h) |
tms2 | Time as mm:ss.s string |
Definition at line 845 of file time2string.f90.
References sufr_kinds::double, and tms2().
Referenced by tms2().
elemental character function, dimension(8) sufr_time2string::tmsss2 | ( | real(double), intent(in) | t | ) |
Print time as m:ss.s string, input in hours, like tms2, but t<10 min(!)
t | Time (h) |
tmsss2 | Time as m:ss.s string |
Definition at line 880 of file time2string.f90.
References sufr_kinds::double, and tmsss2().
Referenced by tmsss2().
elemental character function, dimension(6) sufr_time2string::um | ( | real(double), intent(in) | t | ) |
Print time as string in 01u23m, input in hours.
t | Time (h) |
um | Time as string in 01u23m |
Definition at line 517 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, sufr_constants::mm, sufr_constants::r2h, sufr_angles::rev(), and um().
Referenced by um().
elemental character function, dimension(8) sufr_time2string::umm | ( | real(double), intent(in) | t | ) |
Print time as string in 00u11.2m, input in hours.
t | Time (h) |
umm | Time as string in 00u11.2m |
Definition at line 364 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, sufr_constants::r2h, sufr_angles::rev(), and umm().
Referenced by umm().
elemental character function, dimension(9) sufr_time2string::ums | ( | real(double), intent(in) | t | ) |
Print time as 00u11m22s string, input in hours.
t | Time (h) |
ums | Time as 00u11m22s string |
Definition at line 186 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, sufr_constants::mm, sufr_constants::r2h, sufr_angles::rev(), and ums().
Referenced by ums().
elemental character function, dimension(28) sufr_time2string::wum | ( | real(double), intent(in) | t | ) |
Print time as string in 01u23m, input in hours, web version (HTML superscripts)
t | Time (h) |
wum | Time as HTML string in 01u23m |
Definition at line 559 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, sufr_constants::mm, sufr_constants::r2h, sufr_angles::rev(), and wum().
Referenced by wum().
elemental character function, dimension(30) sufr_time2string::wumm | ( | real(double), intent(in) | t | ) |
Print time as string in 01u23.1m, input in hours, web version (HTML superscripts)
t | Time (h) |
wumm | Time as HTML string in 01u23.1m |
Definition at line 600 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, sufr_constants::mm, sufr_constants::r2h, sufr_angles::rev(), and wumm().
Referenced by wumm().
elemental character function, dimension(42) sufr_time2string::wums | ( | real(double), intent(in) | t | ) |
Print time as 00u11m22s HTML string, input in hours.
t | Time (h) |
wums | Time as 00u11m22s HTML string |
Definition at line 641 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, sufr_constants::mm, sufr_constants::r2h, sufr_angles::rev(), and wums().
Referenced by wums().
elemental character function, dimension(44) sufr_time2string::wums_s | ( | real(double), intent(in) | t | ) |
Print time as a Dutch HTML string in 11u22m33.4s, input in hours. HTML equivalent of hms_s()
t | Time (h) |
wums_s | Time as a Dutch HTML string in 11u22m33.4s |
Definition at line 686 of file time2string.f90.
References sufr_numerics::deq0(), sufr_kinds::double, sufr_constants::h2r, sufr_constants::mm, sufr_constants::r2h, sufr_angles::rev(), and wums_s().
Referenced by wums_s().