Group date_group
Routines for date and time manipulation and conversion. More...
Public Functions
Type | Name |
---|---|
subroutine | canopy_date_mod::geth_idts (newdate newdate, olddate olddate, idts idts) Calculate time difference between two dates. |
subroutine | canopy_date_mod::geth_newdate (ndate ndate, odate odate, idt idt) |
subroutine | canopy_date_mod::getsdt (hdate hdate, sdate sdate, stime stime) |
integer function | canopy_date_mod::julian (year year, mnth mnth, mday mday) |
integer function | canopy_date_mod::nfeb (year year) |
subroutine | canopy_date_mod::split_date_char (date date, century_year century_year, month month, day day, hour hour, minute minute, second second) |
Detailed Description
This group contains subroutines and functions for: * Computing time differences between dates * Generating new dates from time increments * Converting between date formats * Julian day calculations * Date string parsing and manipulation
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
)