Versions
All

Purpose
This function returns a date, in the proper form, based upon a series of numbers passed to it.

Syntax
Code:
$L.success.flag=rtecall("datemake", $L.return.code, $L.date, $L.yr, $L.mo, $L.da, $L.hr, $L.mn, $L.se)
  • $L.success.flag
    true = success
    false = failure
  • $L.return.code
    returncode of the call
  • $L.date
    The variable in which the date will be returned
  • $L.yr
    The year (2 digit year uses prefix 20 for years up to 50, 19 for years after; e.g., 48 returns 2048, 99 returns 1999)
  • $L.mo
    The month
  • $L.da
    The day (1 through 31)
  • $L.hr
    The hour
  • $L.mn
    The minutes
  • $L.se
    The seconds

Example 1
Code:
$L.cal.date='01/01/00 00:00:00'
$L.success.flg=rtecall("datemake",$L.return.code, $L.cal.date, 0, 5, 31, 17, 15, 22)
returns
$L.success.flag=true
$L.cal.date='05/31/2000 17:15:22'

Example 2
Code:
$L.cal.date='01/01/00 00:00:00'
$L.success.flag= rtecall("datemake",$L.return.code, $L.cal.date, 0, 2, 31, 17, 15, 22)
returns
$L.success.flag=true
$L.cal.date='01/01/2000 00:00:00'

The result is invalid so the date variable is unchanged. Nonetheless, $L.success.flag returns true.