m_time Module

module~~m_time~~UsesGraph module~m_time m_time module~variablekind variableKind module~variablekind->module~m_time iso_fortran_env iso_fortran_env iso_fortran_env->module~variablekind
Help

Contains functions that handle time

Used By

module~~m_time~~UsedByGraph module~m_time m_time module~m_tests m_tests module~m_time->module~m_tests module~progressbar_class ProgressBar_Class module~m_time->module~progressbar_class module~prng_class Prng_Class module~m_time->module~prng_class program~scaletest_coretran scaleTest_coretran module~m_time->program~scaletest_coretran module~stopwatch_class Stopwatch_Class module~m_time->module~stopwatch_class program~test_coretran test_coretran module~m_tests->program~test_coretran module~progressbar_class->module~m_tests module~progressbar_class->program~scaletest_coretran module~prng_class->module~m_tests module~m_random m_random module~prng_class->module~m_random module~stopwatch_class->module~m_tests module~stopwatch_class->module~progressbar_class module~stopwatch_class->program~scaletest_coretran module~m_random->module~m_tests module~m_random->program~scaletest_coretran module~m_random->program~test_coretran module~m_array1d m_array1D module~m_random->module~m_array1d module~m_array1d->module~m_tests module~m_array1d->program~scaletest_coretran module~m_kdtree m_KdTree module~m_array1d->module~m_kdtree module~m_maths m_maths module~m_array1d->module~m_maths module~m_kdtree->module~m_tests module~m_kdtree->program~scaletest_coretran module~m_maths->module~m_tests module~m_maths->program~scaletest_coretran module~m_maths->module~m_kdtree
Help


Functions

public function daysInMonth(month, year) result(days)

Get the number of days in a month. Accounts for leap years

Arguments

Type IntentOptional AttributesName
integer(kind=i32) :: month

How many days in this month

integer(kind=i32), optional :: year

Check if a leap year?

Return Value integer(kind=i32)

Number of days

public function daysInYear(year) result(days)

Get the number of days in a year, accounts for leap years

Arguments

Type IntentOptional AttributesName
integer(kind=i32) :: year

How many days in this year

Return Value integer(kind=i32)

Number of days

public function isLeapYear(year) result(yes)

Determine whether the year is a leap year

Arguments

Type IntentOptional AttributesName
integer(kind=i32) :: year

Year to check

Return Value logical

is a leap year

public function secondsToHMS(t) result(res)

Convert a time in seconds to HH:MM:SS.MSEC

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: t

Time in seconds

Return Value character(len=22)

Resulting string contains the time

public function timeInSeconds(values) result(res)

Convert hours minutes seconds etc. to seconds

Arguments

Type IntentOptional AttributesName
integer(kind=i32) :: values(8)

values containing amounts of days hours etc.

Return Value real(kind=r64)

time in seconds

public function timeToInteger(values) result(res)

Convert hours minutes seconds etc. to an integer. Use 64bit to prevent the 2038 problem.

Arguments

Type IntentOptional AttributesName
integer(kind=i32) :: values(8)

Values containing amounts of days hours etc.

Return Value integer(kind=i64)

Time as an integer.