libSUFR
a LIBrary of Some Useful Fortran Routines
All Classes Namespaces Files Functions Variables Pages
time2string.f90 File Reference

(libSUFR version 0.7.8, revision 407, hash 01069b8, 2025-03-02)

Procedures to convert time to formatted text strings. More...

Go to the source code of this file.

Modules

module  sufr_time2string
 Procedures to convert time to formatted text strings.
 

Functions/Subroutines

elemental character function, dimension(8) sufr_time2string::hms (t)
 Print time as hh:mm:ss string, input in hours; Display '–:–:–' for t=0.
 
elemental character function, dimension(8) sufr_time2string::hhms (t)
 Print time as hh:mm:ss string, input in hours; No special output for t=0.
 
elemental character function, dimension(9) sufr_time2string::hms2 (t)
 Print time as string in hh:mm, input in hours, output between -12 and 12.
 
elemental character function, dimension(9) sufr_time2string::ums (t)
 Print time as 00u11m22s string, input in hours.
 
elemental character function, dimension(10) sufr_time2string::hms_s (t)
 Print time as string in hms.s, input in hours.
 
elemental character function, dimension(12) sufr_time2string::hms_sss (t)
 Print time as string in hms.sss, input in hours.
 
elemental character function, dimension(7) sufr_time2string::hmm (t)
 Print time as string in hm.m, input in hours.
 
elemental character function, dimension(8) sufr_time2string::umm (t)
 Print time as string in 00u11.2m, input in hours.
 
elemental character function, dimension(5) sufr_time2string::hm (time)
 Print time as string in hh:mm, input in hours.
 
elemental character function, dimension(9) sufr_time2string::hm_mmm (time)
 Print time as string in hh:mm.mmm, input in hours.
 
elemental character function, dimension(5) sufr_time2string::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) sufr_time2string::um (t)
 Print time as string in 01u23m, input in hours.
 
elemental character function, dimension(28) sufr_time2string::wum (t)
 Print time as string in 01u23m, input in hours, web version (HTML superscripts)
 
elemental character function, dimension(30) sufr_time2string::wumm (t)
 Print time as string in 01u23.1m, input in hours, web version (HTML superscripts)
 
elemental character function, dimension(42) sufr_time2string::wums (t)
 Print time as 00u11m22s HTML string, input in hours.
 
elemental character function, dimension(44) sufr_time2string::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) sufr_time2string::hm2 (t)
 Print time as string in +/-hh:mm, input in hours, between -12 and 12.
 
elemental character function, dimension(5) sufr_time2string::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) sufr_time2string::tms (t)
 Print time as mm:ss.s string, input in hours.
 
elemental character function, dimension(9) sufr_time2string::tms2 (t)
 Print time as mm:ss.s string, input in hours.
 
elemental character function, dimension(8) sufr_time2string::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.

Definition in file time2string.f90.