s2hms Interface

public interface s2hms

convert seconds to hours, minutes, seconds


Module Procedures

private pure module function int_s2hms(s) result(time)

Given an integer 's' in seconds, convert to the format hh:mm:ss.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: s

Return Value character(len=:), allocatable

private pure module function real_s2hms(s_re) result(time)

Given an integer in seconds, convert to the format hh:mm:ss. Input is a real, gets converted to int

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: s_re

Return Value character(len=:), allocatable