My Project
Public Member Functions | List of all members
mod_time::seconds2time Interface Reference

Public Member Functions

type(time) function seconds2time_dbl (SECS)
 
type(time) function seconds2time_flt (SECS)
 
type(time) function seconds2time_int (SECS)
 
type(time) function seconds2time_lint (SECS)
 

Detailed Description

Definition at line 149 of file mod_time.f90.

Member Function/Subroutine Documentation

◆ seconds2time_dbl()

type(time) function mod_time::seconds2time::seconds2time_dbl ( real(dp), intent(in)  SECS)

Definition at line 302 of file mod_time.f90.

302  implicit none
303  TYPE(TIME) :: MJD
304  real(DP), INTENT(IN) :: SECS
305  real(DP) :: TEMP
306 
307  mjd%mjd = int(secs/dble(spd),itime)
308  temp = mod(secs,dble(spd))
309  mjd%MuSOD = anint(temp*real(million,dp),itime)
310  CALL adjust(mjd)
311  seconds2time_dbl = mjd
integer(itime), parameter spd
Definition: mod_time.f90:157
subroutine adjust(MJD)
Definition: mod_time.f90:377
type(time) function seconds2time_dbl(SECS)
Definition: mod_time.f90:302
integer, parameter dp
Definition: mod_prec.f90:52
integer(itime), parameter million
Definition: mod_time.f90:160
integer, parameter itime
Definition: mod_time.f90:48

◆ seconds2time_flt()

type(time) function mod_time::seconds2time::seconds2time_flt ( real(spa), intent(in)  SECS)

Definition at line 337 of file mod_time.f90.

337  implicit none
338  real(SPA), INTENT(IN) :: SECS
339 
340  seconds2time_flt = seconds2time_dbl(dble(secs))
341 
type(time) function seconds2time_dbl(SECS)
Definition: mod_time.f90:302
type(time) function seconds2time_flt(SECS)
Definition: mod_time.f90:337

◆ seconds2time_int()

type(time) function mod_time::seconds2time::seconds2time_int ( integer, intent(in)  SECS)

Definition at line 315 of file mod_time.f90.

315  implicit none
316  TYPE(TIME) :: MJD
317  INTEGER, INTENT(IN) :: SECS
318 
319  mjd%mjd = 0
320  mjd%MuSOD = secs
321  CALL adjust(mjd)
322  seconds2time_int = mjd
subroutine adjust(MJD)
Definition: mod_time.f90:377
type(time) function seconds2time_int(SECS)
Definition: mod_time.f90:315

◆ seconds2time_lint()

type(time) function mod_time::seconds2time::seconds2time_lint ( integer(itime), intent(in)  SECS)

Definition at line 326 of file mod_time.f90.

326  implicit none
327  TYPE(TIME) :: MJD
328  INTEGER(ITIME), INTENT(IN) :: SECS
329 
330  mjd%mjd = 0
331  mjd%MuSOD = secs
332  CALL adjust(mjd)
333  seconds2time_lint = mjd
subroutine adjust(MJD)
Definition: mod_time.f90:377
type(time) function seconds2time_lint(SECS)
Definition: mod_time.f90:326

The documentation for this interface was generated from the following file: