Get_Date_Attribute
Obsolete
This command is obsolete. Use Get_Attribute and DF_DATE_FORMAT instead.
See Also: Set_Date_Attribute
Purpose
To return the values of attributes that control the behavior of the date system with regard to the century change at the Year 2000.
Syntax
Get_Date_Attribute {attribute} To {variable}
Argument Explanation
- attribute:
SysDate4_State: Controls whether the sysdate command returns dates with the year in two or four digits.Date4_State: Controls whether entries of dates with two-digit years are converted to and from dates with four-digit years on saving to and retrieving from disk respectively.-
Epoch_Value: Sets the two-digit year value above which dates are considered to be in the 1900s and below which dates are considered to be in the 2000s. -
variable:
- To hold
TrueorFalseforSysDate4_StateandDate4_State, and integer values 0 through 99 forEpoch_Value.
What It Does
Get_Date_Attribute returns the values of the three attributes that manage the running program's behavior in the entry of dates with two-digit years with regard to the change of century at the Year 2000.
Get_Date_Attribute Date4_State To iConverted
In this example, the integer variable iConverted is zero if the value of Date4_State is False, and one if it is True.
Notes
-
Settings of
Epoch_Valuehave no effect ifDate4_Statehas not been set toTrue. -
If the running program has not executed a
Set_Date_Attribute Date4_Statecommand, this command gets the values of theUseEpochregistry key. If noSet_Date_Attribute Epoch_Valuestatement has been executed, it gets the value of theEpochregistry key.