Skip to content

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.

subroutine canopy_date_mod::geth_idts (
    newdate newdate,
    olddate olddate,
    idts idts
) 

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

subroutine canopy_date_mod::geth_newdate (
    ndate ndate,
    odate odate,
    idt idt
) 

function getsdt

subroutine canopy_date_mod::getsdt (
    hdate hdate,
    sdate sdate,
    stime stime
) 

function julian

integer  function canopy_date_mod::julian (
    year year,
    mnth mnth,
    mday mday
) 

function nfeb

integer  function canopy_date_mod::nfeb (
    year year
) 

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