12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Overview of the <strong>Libraries</strong> 1TimeThe time can be displayed in one of many formats using the letter "h" or "H" to denote hours, theletter "m" to denote minutes, the letter "s" to denote seconds and the letter "t" to denote the timemarker. The following table shows the numerous variations of the time format. Lowercase "h"denotes the 12 hour clock and uppercase "H" denotes the 24 hour clock. The lowercase "m"distinguishes minutes from months.hhhHHHmmmssstttHours without leading zeros for single-digit hours (12 hour clock)Hours with leading zeros for single-digit hours (12 hour clock)Hours without leading zeros for single-digit hours (24 hour clock)Hours with leading zeros for single-digit hours (24 hour clock)Minutes without leading zeros for single-digit minutesMinutes with leading zeros for single-digit minutesSeconds without leading zeros for single-digit secondsSeconds with leading zeros for single-digit secondsOne-character time marker stringMulticharacter time marker stringSee Also: “NLSGetLocaleInfo”ExampleUSE IFNLSINTEGER(4) strlenCHARACTER(40) strstrlen = NLSGetLocaleInfo(NLS$LI_SDAYNAME1, str)print *, str ! prints Monday if language is Englishstrlen = NLSGetLocaleInfo(NLS$LI_SDAYNAME2, str)print *, str ! prints Tuesday if language is EnglishPOSIX* RoutinesThe POSIX routines help you write <strong>Fortran</strong> programs that comply with the POSIX Standard. Theyimplement the IEEE POSIX FORTRAN-77 language bindings.To use a POSIX routine, add the following statement to the program unit containing the routine:USE IFPOSIX1-11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!