[UP]


Manual Reference Pages  - d2j (3)

NAME

d2j(3f) - [M_time] given DAT date-time array returns Julian Date (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Returns
Example
Author
License

SYNOPSIS

function d2j(dat) result (julian)

integer,intent(in) :: dat(8) real(kind=realtime) :: julian

DESCRIPTION

Given DAT date-time array returns Julian Date

OPTIONS

dat Integer array holding a "DAT" array, similar in structure to the array returned by the intrinsic DATE_AND_TIME(3f):
               dat=[year,month,day,timezone,hour,minutes,seconds,milliseconds]

  If not present, use current time.

RETURNS

julian The Julian Date.

EXAMPLE

Sample program:

    program demo_d2j
    use M_time, only : d2j
    implicit none
    integer :: dat(8)
       call date_and_time(values=dat)
       write(*,’(" Today is:",*(i0:,":"))’)dat
       write(*,*)’Julian Date is ’,d2j(dat)
    end program demo_d2j

results:

    Today is:2016:7:19:-240:2:11:50:885
    Julian Date is    2457588.7582278359

AUTHOR

John S. Urban, 2015

LICENSE

Public Domain


d2j (3) July 05, 2020
Generated by manServer 1.08 from e40dc693-eabb-486a-9ac8-8238eb44f68e using man macros.