Skip to content

Commit

Permalink
Renamed function jd2time() to jd2ltime() to indicate that this is loc…
Browse files Browse the repository at this point in the history
…al time
  • Loading branch information
MarcvdSluys committed Apr 8, 2016
1 parent d9c1a11 commit 74fd84e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/date_time.f90
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

! jd2dtm: Converts JD to y,m,d,h,m,s, input in UT, output in LT
! jd2dthm: Converts JD to y,m,d,h,m, input in UT, output in LT (no seconds)
! jd2time: Converts JD to time; input JD in UT, output time in hours LT
! jd2ltime: Converts JD to time; input JD in UT, output time in hours LT

! printdate: Converts JD to y,m,d,h,m,s and prints it out
! printdate1: prints date/time of JD (UT) without hard return
Expand Down Expand Up @@ -511,22 +511,22 @@ end subroutine jd2dthm
!!
!! \param jd0 Julian day (UT)

function jd2time(jd0)
function jd2ltime(jd0)
use SUFR_kinds, only: double
use SUFR_date_and_time, only: jd2cal
use TheSky_local, only: tz

implicit none
real(double), intent(in) :: jd0
real(double) :: jd1,dd,jd2time
real(double) :: jd1,dd,jd2ltime
integer :: d,mm,yy

jd1 = jd0 + tz/24.d0 ! UT -> LT
call jd2cal(jd1,yy,mm,dd)
d = int(dd)
jd2time = (dd - dble(d))*24.d0
jd2ltime = (dd - dble(d))*24.d0

end function jd2time
end function jd2ltime
!*********************************************************************************************************************************


Expand Down

0 comments on commit 74fd84e

Please sign in to comment.