NCEPLIBS-bufr  12.0.1
i4dy.f File Reference

Convert a date-time with a 2-digit year to a date-time with a 4-digit year. More...

Go to the source code of this file.

Functions/Subroutines

recursive function i4dy (IDATE)
 This function converts a date-time with a 2-digit year (YYMMDDHH) to a date-time with a 4-digit year (YYYYMMDDHH) using a windowing technique. More...
 

Detailed Description

Convert a date-time with a 2-digit year to a date-time with a 4-digit year.

Author
J. Woollen
Date
1998-07-08

Definition in file i4dy.f.

Function/Subroutine Documentation

◆ i4dy()

recursive function i4dy (   IDATE)

This function converts a date-time with a 2-digit year (YYMMDDHH) to a date-time with a 4-digit year (YYYYMMDDHH) using a windowing technique.

All 2-digit years greater than 40 are assumed to have a 4-digit year beginning with 19 (i.e. 1941-1999), and all 2-digit years less than or equal to 40 are assumed to have a 4-digit year beginning with 20 (i.e. 2000-2040). If the input date-time already contains a 4-digit year, then the function simply returns that value.

Parameters
[in]IDATE– integer: Date-time in format of either YYMMDDHH (2-digit year) or YYYYMMDDHH (4-digit year)
Returns
i4dy – integer: Date-time in format of YYYYMMDDHH (4-digit year)
Author
J. Woollen
Date
1998-07-08

Definition at line 23 of file i4dy.f.

References modv_im8b::im8b, and x84().

Referenced by cktaba(), cmsgini(), iupbs01(), openmb(), openmg(), readmp(), and rewnbf().