Namespace canopy_date_mod
Namespace List > canopy_date_mod
Public Functions
Type | Name |
---|---|
subroutine | geth_idts (newdate newdate, olddate olddate, idts idts) Calculate time difference between two dates. |
subroutine | geth_newdate (ndate ndate, odate odate, idt idt) |
subroutine | getsdt (hdate hdate, sdate sdate, stime stime) |
integer function | julian (year year, mnth mnth, mday mday) |
integer function | nfeb (year year) |
subroutine | split_date_char (date date, century_year century_year, month month, day day, hour hour, minute minute, second second) |
Public Functions Documentation
function geth_idts
Calculate time difference between two dates.
Computes the time difference in seconds between two input dates in the format 'YYYY-MM-DD HH:MM:SS.ffff'. Handles leap years and different month lengths correctly.
Parameters:
newdate
The new (later) date string 'YYYY-MM-DD HH:MM:SS.ffff'olddate
The old (earlier) date string 'YYYY-MM-DD HH:MM:SS.ffff'idts
Time difference in seconds (newdate - olddate) [output]
Author:
NCAR, T. Otte
Date:
February 2001, modified 2011
function geth_newdate
function getsdt
function julian
function nfeb
function split_date_char
subroutine canopy_date_mod::split_date_char (
date date,
century_year century_year,
month month,
day day,
hour hour,
minute minute,
second second
)
The documentation for this class was generated from the following file src/canopy_date_mod.F90