libSUFR
a LIBrary of Some Useful Fortran Routines
All Classes Namespaces Files Functions Variables Pages
sufr_time2string Module Reference

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(!)
 

Detailed Description

Procedures to convert time to formatted text strings.

Function/Subroutine Documentation

◆ hdm()

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.

Parameters
tTime (h)
Return values
hdmTime 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().

Here is the call graph for this function:

◆ hhm()

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.

Parameters
tTime (h)
Return values
hhmTime 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().

Here is the call graph for this function:

◆ hhms()

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.

Parameters
tTime (h)
Return values
hhmsTime 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().

Here is the call graph for this function:

◆ hm()

elemental character function, dimension(5) sufr_time2string::hm ( real(double), intent(in) time)

Print time as string in hh:mm, input in hours.

Parameters
timeTime (h)
Return values
hmTime as string in hh:mm
Note
  • Prints '–:–' for time=0! Use hhm() to avoid this.

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().

Here is the call graph for this function:

◆ hm2()

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.

Parameters
tTime (h)
Return values
hm2Time 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().

Here is the call graph for this function:

◆ hm_mmm()

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.

Parameters
timeTime (h)
Return values
hm_mmmTime 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().

Here is the call graph for this function:

◆ hmm()

elemental character function, dimension(7) sufr_time2string::hmm ( real(double), intent(in) t)

Print time as string in hm.m, input in hours.

Parameters
tTime (h)
Return values
hmmTime 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().

Here is the call graph for this function:

◆ hms()

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.

Parameters
tTime (h)
Return values
hmsTime 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().

Here is the call graph for this function:

◆ hms2()

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.

Parameters
tTime (h)
Return values
hms2Time 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().

Here is the call graph for this function:

◆ hms_s()

elemental character function, dimension(10) sufr_time2string::hms_s ( real(double), intent(in) t)

Print time as string in hms.s, input in hours.

Parameters
tTime (h)
Return values
hms_sTime 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().

Here is the call graph for this function:

◆ hms_sss()

elemental character function, dimension(12) sufr_time2string::hms_sss ( real(double), intent(in) t)

Print time as string in hms.sss, input in hours.

Parameters
tTime (h)
Return values
hms_sssTime 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().

Here is the call graph for this function:

◆ tms()

elemental character function, dimension(8) sufr_time2string::tms ( real(double), intent(in) t)

Print time as mm:ss.s string, input in hours.

Parameters
tTime (h)
Return values
tmsTime as mm:ss.s string

Definition at line 819 of file time2string.f90.

References sufr_kinds::double, and tms().

Referenced by tms().

Here is the call graph for this function:

◆ tms2()

elemental character function, dimension(9) sufr_time2string::tms2 ( real(double), intent(in) t)

Print time as mm:ss.s string, input in hours.

Parameters
tTime (h)
Return values
tms2Time as mm:ss.s string

Definition at line 845 of file time2string.f90.

References sufr_kinds::double, and tms2().

Referenced by tms2().

Here is the call graph for this function:

◆ tmsss2()

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(!)

Parameters
tTime (h)
Return values
tmsss2Time as m:ss.s string

Definition at line 880 of file time2string.f90.

References sufr_kinds::double, and tmsss2().

Referenced by tmsss2().

Here is the call graph for this function:

◆ um()

elemental character function, dimension(6) sufr_time2string::um ( real(double), intent(in) t)

Print time as string in 01u23m, input in hours.

Parameters
tTime (h)
Return values
umTime 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().

Here is the call graph for this function:

◆ umm()

elemental character function, dimension(8) sufr_time2string::umm ( real(double), intent(in) t)

Print time as string in 00u11.2m, input in hours.

Parameters
tTime (h)
Return values
ummTime 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().

Here is the call graph for this function:

◆ ums()

elemental character function, dimension(9) sufr_time2string::ums ( real(double), intent(in) t)

Print time as 00u11m22s string, input in hours.

Parameters
tTime (h)
Return values
umsTime 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().

Here is the call graph for this function:

◆ wum()

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)

Parameters
tTime (h)
Return values
wumTime 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().

Here is the call graph for this function:

◆ wumm()

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)

Parameters
tTime (h)
Return values
wummTime 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().

Here is the call graph for this function:

◆ wums()

elemental character function, dimension(42) sufr_time2string::wums ( real(double), intent(in) t)

Print time as 00u11m22s HTML string, input in hours.

Parameters
tTime (h)
Return values
wumsTime 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().

Here is the call graph for this function:

◆ wums_s()

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()

Parameters
tTime (h)
Return values
wums_sTime 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().

Here is the call graph for this function: