- contrib/hbct/doc/en/ct.txt
* contrib/hbct/doc/en/ctc.txt
* contrib/hbct/doc/en/strdiff.txt
* contrib/hbct/doc/en/token2.txt
* contrib/hbgt/doc/en/hbgt.txt
* contrib/hbmisc/doc/en/dates2.txt
* contrib/hbmisc/doc/en/ht_class.txt
* contrib/hbmisc/doc/en/ht_str.txt
* contrib/hbnf/doc/en/aavg.txt
* contrib/hbnf/doc/en/acctadj.txt
* contrib/hbnf/doc/en/acctmnth.txt
* contrib/hbnf/doc/en/acctqtr.txt
* contrib/hbnf/doc/en/acctweek.txt
* contrib/hbnf/doc/en/acctyear.txt
* contrib/hbnf/doc/en/adapter.txt
* contrib/hbnf/doc/en/aemaxlen.txt
* contrib/hbnf/doc/en/aeminlen.txt
* contrib/hbnf/doc/en/alt.txt
* contrib/hbnf/doc/en/amedian.txt
* contrib/hbnf/doc/en/anomatch.txt
* contrib/hbnf/doc/en/any2any.txt
* contrib/hbnf/doc/en/aredit.txt
* contrib/hbnf/doc/en/asum.txt
* contrib/hbnf/doc/en/at2.txt
* contrib/hbnf/doc/en/bitclr.txt
* contrib/hbnf/doc/en/byt2bit.txt
* contrib/hbnf/doc/en/byt2hex.txt
* contrib/hbnf/doc/en/calendar.txt
* contrib/hbnf/doc/en/chdir.txt
* contrib/hbnf/doc/en/cint86.txt
* contrib/hbnf/doc/en/clrsel.txt
* contrib/hbnf/doc/en/cntryset.txt
* contrib/hbnf/doc/en/ctrl.txt
* contrib/hbnf/doc/en/d2e.txt
* contrib/hbnf/doc/en/datecnfg.txt
* contrib/hbnf/doc/en/default.txt
* contrib/hbnf/doc/en/dosver.txt
* contrib/hbnf/doc/en/easter.txt
* contrib/hbnf/doc/en/elapmil.txt
* contrib/hbnf/doc/en/elapsed.txt
* contrib/hbnf/doc/en/eltime.txt
* contrib/hbnf/doc/en/findith.txt
* contrib/hbnf/doc/en/firstday.txt
* contrib/hbnf/doc/en/floptst.txt
* contrib/hbnf/doc/en/fttext.txt
* contrib/hbnf/doc/en/getenvrn.txt
* contrib/hbnf/doc/en/hex2dec.txt
* contrib/hbnf/doc/en/iamidle.txt
* contrib/hbnf/doc/en/idle.txt
* contrib/hbnf/doc/en/inp.txt
* contrib/hbnf/doc/en/invclr.txt
* contrib/hbnf/doc/en/isprint.txt
* contrib/hbnf/doc/en/lastday.txt
* contrib/hbnf/doc/en/linked.txt
* contrib/hbnf/doc/en/madd.txt
* contrib/hbnf/doc/en/menu1.txt
* contrib/hbnf/doc/en/menutonf.txt
* contrib/hbnf/doc/en/metaph.txt
* contrib/hbnf/doc/en/miltime.txt
* contrib/hbnf/doc/en/min2dhm.txt
* contrib/hbnf/doc/en/mkdir.txt
* contrib/hbnf/doc/en/month.txt
* contrib/hbnf/doc/en/mouse1.txt
* contrib/hbnf/doc/en/n2color.txt
* contrib/hbnf/doc/en/netpv.txt
* contrib/hbnf/doc/en/nooccur.txt
* contrib/hbnf/doc/en/ntow.txt
* contrib/hbnf/doc/en/nwlstat.txt
* contrib/hbnf/doc/en/nwsem.txt
* contrib/hbnf/doc/en/nwuid.txt
* contrib/hbnf/doc/en/origin.txt
* contrib/hbnf/doc/en/outp.txt
* contrib/hbnf/doc/en/page.txt
* contrib/hbnf/doc/en/peek.txt
* contrib/hbnf/doc/en/pickday.txt
* contrib/hbnf/doc/en/popadder.txt
* contrib/hbnf/doc/en/proper.txt
* contrib/hbnf/doc/en/putkey.txt
* contrib/hbnf/doc/en/qtr.txt
* contrib/hbnf/doc/en/rand1.txt
* contrib/hbnf/doc/en/reboot.txt
* contrib/hbnf/doc/en/rmdir.txt
* contrib/hbnf/doc/en/round.txt
* contrib/hbnf/doc/en/savearr.txt
* contrib/hbnf/doc/en/scancode.txt
* contrib/hbnf/doc/en/setdate.txt
* contrib/hbnf/doc/en/settime.txt
* contrib/hbnf/doc/en/shift.txt
* contrib/hbnf/doc/en/sinkey.txt
* contrib/hbnf/doc/en/sleep.txt
* contrib/hbnf/doc/en/sqzn.txt
* contrib/hbnf/doc/en/stod.txt
* contrib/hbnf/doc/en/sysmem.txt
* contrib/hbnf/doc/en/tbwhile.txt
* contrib/hbnf/doc/en/tempfile.txt
* contrib/hbnf/doc/en/vertmenu.txt
* contrib/hbnf/doc/en/vidcur.txt
* contrib/hbnf/doc/en/vidmode.txt
* contrib/hbnf/doc/en/wda.txt
* contrib/hbnf/doc/en/week.txt
* contrib/hbnf/doc/en/year.txt
* contrib/hbziparc/doc/en/hbziparc.txt
* contrib/rddads/doc/en/adsfuncs.txt
* contrib/rddads/doc/en/readme.txt
* doc/en/1stread.txt
* doc/en/array.txt
* doc/en/binnum.txt
* doc/en/browse.txt
* doc/en/command.txt
* doc/en/compiler.txt
* doc/en/datetime.txt
* doc/en/dbdelim.txt
* doc/en/dbsdf.txt
* doc/en/dbstrux.txt
* doc/en/dir.txt
* doc/en/diskspac.txt
* doc/en/errsys.txt
* doc/en/eval.txt
* doc/en/file.txt
* doc/en/garbage.txt
* doc/en/harbext.txt
* doc/en/hashes.txt
* doc/en/hb_set.txt
* doc/en/hbinet.txt
* doc/en/hvm.txt
* doc/en/idle.txt
* doc/en/input.txt
* doc/en/lang.txt
* doc/en/macro.txt
* doc/en/math.txt
* doc/en/memo.txt
* doc/en/memvar.txt
* doc/en/menu.txt
* doc/en/misc.txt
* doc/en/nation.txt
* doc/en/objfunc.txt
* doc/en/rdd.txt
* doc/en/rdddb.txt
* doc/en/rddmisc.txt
* doc/en/rddord.txt
* doc/en/set.txt
* doc/en/setmode.txt
* doc/en/string.txt
* doc/en/tclass.txt
* doc/en/terminal.txt
* doc/en/tgetlist.txt
* doc/en/tlabel.txt
* doc/en/treport.txt
* doc/en/var.txt
* sync with fixes/updates from 3.4 fork
575 lines
12 KiB
Plaintext
575 lines
12 KiB
Plaintext
/*
|
|
* Copyright 2000 Luiz Rafael Culik <culik@sl.conex.net>
|
|
* Documentation for: CDoW(), CMonth(), Date(), CToD(), Day(), Days()
|
|
* DoW(), DToS(), DToC(), ElapTime(), Month(), Seconds(), Secs(), Time(), Year()
|
|
* See COPYING.txt for licensing terms.
|
|
*
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
CDoW()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Converts a date to the day of week
|
|
$SYNTAX$
|
|
CDoW( <dDate> ) --> cDay
|
|
$ARGUMENTS$
|
|
<dDate> Any date expression.
|
|
$RETURNS$
|
|
<cDay> The current day of week.
|
|
$DESCRIPTION$
|
|
This function returns a character string of the day of the week,
|
|
from a date expression <dDate> passed to it.
|
|
If a NULL date is passed to the function, the value of the function
|
|
will be a NULL byte.
|
|
$EXAMPLES$
|
|
? CDoW( Date() )
|
|
IF CDoW( Date() + 10 ) == "Sunday"
|
|
? "This is a sunny day."
|
|
ENDIF
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
Day(), DoW(), Date(), CMonth()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
CMonth()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Return the name of the month.
|
|
$SYNTAX$
|
|
CMonth( <dDate> ) --> cMonth
|
|
$ARGUMENTS$
|
|
<dDate> Any date expression.
|
|
$RETURNS$
|
|
<cMonth> The current month name
|
|
$DESCRIPTION$
|
|
This function returns the name of the month (January, February, etc.)
|
|
from a date expression <dDate> passed to it.
|
|
If a NULL date is passed to the function, the value of the function
|
|
will be a NULL byte.
|
|
$EXAMPLES$
|
|
? CMonth( Date() )
|
|
IF CMonth( Date() + 10 ) == "March"
|
|
? "Have you done your system BACKUP?"
|
|
ENDIF
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
CDoW(), Date(), Month(), Year(), DoW(), DToC()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
Date()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Return the Current OS Date
|
|
$SYNTAX$
|
|
Date() --> dCurDate
|
|
$ARGUMENTS$
|
|
None
|
|
$RETURNS$
|
|
<dCurDate> Current system date.
|
|
$DESCRIPTION$
|
|
This function returns the current system date.
|
|
$EXAMPLES$
|
|
? Date()
|
|
? "Today is", hb_ntos( Day( Date() ) ), "of", CMonth( Date() ), "of", StrZero( Year( Date() ), 4 )
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
CToD(), DToS(), DToC(), Day(), Month(), CMonth()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
CToD()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Converts a character string to a date expression
|
|
$SYNTAX$
|
|
CToD( <cDateString> ) --> dDate
|
|
$ARGUMENTS$
|
|
<cDateString> A character date in format "mm/dd/yy"
|
|
$RETURNS$
|
|
<dDate> A date expression
|
|
$DESCRIPTION$
|
|
This function converts a date that has been entered as a character
|
|
expression to a date expression. The character expression will be in
|
|
the form "MM/DD/YY" (based on the default value in SET DATE) or in
|
|
the appropriate format specified by the SET DATE TO command. If an
|
|
improper character string is passed to the function, an empty date
|
|
value will be returned.
|
|
$EXAMPLES$
|
|
Set( _SET_DATEFORMAT, "yyyy-mm-dd" )
|
|
? CToD( "2000-12-21" )
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
SET DATE, Date(), DToS()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
Day()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Return the numeric day of the month.
|
|
$SYNTAX$
|
|
Day( <cDate> ) --> nMonth
|
|
$ARGUMENTS$
|
|
<cDate> Any valid date expression.
|
|
$RETURNS$
|
|
<nMonth> Numeric value of the day of month.
|
|
$DESCRIPTION$
|
|
This function returns the numeric value of the day of month from a
|
|
date.
|
|
$EXAMPLES$
|
|
? Day( Date() )
|
|
? Day( Date() + 6325 )
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
CToD(), DToS(), DToC(), Date(), Month(), CMonth()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
Days()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Convert elapsed seconds into days
|
|
$SYNTAX$
|
|
Days( <nSecs> ) --> nDay
|
|
$ARGUMENTS$
|
|
<nSecs> The number of seconds
|
|
$RETURNS$
|
|
<nDay> The number of days
|
|
$DESCRIPTION$
|
|
This function converts <nSecs> seconds to the equivalent number
|
|
of days; 86399 seconds represents one day, 0 seconds being midnight.
|
|
$EXAMPLES$
|
|
? Days( 2434234 )
|
|
? "Has been passed", Days( 63251 ), "since midnight"
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
Seconds(), Secs(), ElapTime()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
DoW()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Value for the day of week.
|
|
$SYNTAX$
|
|
DoW( <dDate> ) --> nDay
|
|
$ARGUMENTS$
|
|
<dDate> Any valid date expression
|
|
$RETURNS$
|
|
<nDay> The current day number
|
|
$DESCRIPTION$
|
|
This function returns the number representing the day of the week
|
|
for the date expressed as <dDate>.
|
|
Returned value range is from 1 (Sunday) to 7 (Saturday).
|
|
$EXAMPLES$
|
|
? DoW( Date() )
|
|
? DoW( Date() - 6584 )
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
DToC(), CDoW(), Date(), DToS(), Day()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
DToC()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Date to character conversion
|
|
$SYNTAX$
|
|
DToC( <dDateString> ) --> cDate
|
|
$ARGUMENTS$
|
|
<dDateString> Any date
|
|
$RETURNS$
|
|
<dDate> Character represention of date
|
|
$DESCRIPTION$
|
|
This function converts any date expression (a field or variable)
|
|
expressed as <dDateString> to a character expression in the default
|
|
format "MM/DD/YY". The date format expressed by this function is
|
|
controled in part by the date format specified in the SET DATE
|
|
command
|
|
$EXAMPLES$
|
|
? DToC( Date() )
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
SET DATE, Date(), DToS()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
DToS()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Date to string conversion
|
|
$SYNTAX$
|
|
DToS( <dDateString> ) --> cDate
|
|
$ARGUMENTS$
|
|
<dDateString> Any date
|
|
$RETURNS$
|
|
<dDate> String notation of the date
|
|
$DESCRIPTION$
|
|
This function returns the value of <dDateString> as a character
|
|
string in the format of YYYYMMDD. If the value of <dDateString> is
|
|
an empty date, this function will return eight blank spaces.
|
|
$EXAMPLES$
|
|
? DToS( Date() )
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
DToC(), Date(), DToS()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
ElapTime()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Calculates elapted time.
|
|
$SYNTAX$
|
|
ElapTime( <cStartTime>, <cEndTime> ) --> cDiference
|
|
$ARGUMENTS$
|
|
<cStartTime> Start in time as a string format
|
|
<cEndTime> End time as a string format
|
|
$RETURNS$
|
|
<cDiference> Difference between the times
|
|
$DESCRIPTION$
|
|
This function returns a string that shows the difference between
|
|
the starting time represented as <cStartTime> and the ending time
|
|
as <cEndTime>. If the stating time is greater then the ending
|
|
time, the function will assume that the date changed once.
|
|
$EXAMPLES$
|
|
STATIC s_cStartTime
|
|
INIT PROCEDURE Startup()
|
|
s_cStartTime := Time()
|
|
RETURN
|
|
EXIT PROCEDURE StartExit()
|
|
? "You used this program by", ElapTime( s_cStartTime, Time() )
|
|
RETURN
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
Secs(), Seconds(), Time(), Day()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
Month()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Converts a date expression to a month value
|
|
$SYNTAX$
|
|
Month( <dDate> ) --> nMonth
|
|
$ARGUMENTS$
|
|
<dDate> Any valid date expression
|
|
$RETURNS$
|
|
<nMonth> Corresponding number of the month in the year, ranging from
|
|
0 to 12
|
|
$DESCRIPTION$
|
|
This function returns a number that represents the month of a given
|
|
date expression <dDate>. If a NULL date (CToD( "" )) is passed to the
|
|
function, the value of the function will be 0.
|
|
$EXAMPLES$
|
|
? Month( Date() )
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
CDoW(), DoW(), Year(), CMonth()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
Seconds()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Returns the number of elapsed seconds past midnight.
|
|
$SYNTAX$
|
|
Seconds() --> nSeconds
|
|
$ARGUMENTS$
|
|
None
|
|
$RETURNS$
|
|
<nSeconds> Number of seconds since midnight
|
|
$DESCRIPTION$
|
|
This function returns a numeric value representing the number of
|
|
elapsed seconds based on the current system time.
|
|
The system time is considered to start at 0 (midnight); it continues
|
|
up to 86399 seconds. The value of the return expression is displayed
|
|
in both seconds and hundredths of seconds.
|
|
$EXAMPLES$
|
|
? Seconds()
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
Time()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
Secs()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Return the number of seconds from the system date.
|
|
$SYNTAX$
|
|
Secs( <cTime> ) --> nSeconds
|
|
$ARGUMENTS$
|
|
<cTime> Character expression in a time string format
|
|
$RETURNS$
|
|
<nSeconds> Number of seconds
|
|
$DESCRIPTION$
|
|
This function returns a numeric value that is a number of elapsed
|
|
seconds from midnight based on a time string given as <cTime>.
|
|
$EXAMPLES$
|
|
? Secs( Time() )
|
|
? Secs( Time() - 10 )
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
Seconds(), ElapTime(), Time()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
Time()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Returns the system time as a string
|
|
$SYNTAX$
|
|
Time() --> cTime
|
|
$ARGUMENTS$
|
|
None
|
|
$RETURNS$
|
|
<cTime> Character string representing time
|
|
$DESCRIPTION$
|
|
This function returns the system time represented as a character
|
|
expression in the format of HH:MM:SS
|
|
$EXAMPLES$
|
|
? Time()
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
Date(), Seconds()
|
|
$END$
|
|
*/
|
|
|
|
/* $DOC$
|
|
$TEMPLATE$
|
|
Function
|
|
$NAME$
|
|
Year()
|
|
$CATEGORY$
|
|
API
|
|
$SUBCATEGORY$
|
|
Date/Time
|
|
$ONELINER$
|
|
Converts the year portion of a date into a numeric value
|
|
$SYNTAX$
|
|
Year( <cDate> ) --> nYear
|
|
$ARGUMENTS$
|
|
<dDate> Any valid date expression
|
|
$RETURNS$
|
|
<nYear> The year portion of the date.
|
|
$DESCRIPTION$
|
|
This function returns the numeric value for the year in <dDate>.
|
|
This value will always be a four-digit number and is not affected
|
|
by the setting of the SET CENTURY and SET DATE commands. Addition
|
|
ally, an empty date expression passed to this function will yield
|
|
a zero value.
|
|
$EXAMPLES$
|
|
? Year( Date() )
|
|
? Year( hb_SToD( "32510125" ) )
|
|
$STATUS$
|
|
R
|
|
$COMPLIANCE$
|
|
C
|
|
$PLATFORMS$
|
|
All
|
|
$FILES$
|
|
Library is core
|
|
$SEEALSO$
|
|
Day(), Month()
|
|
$END$
|
|
*/
|