Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfdatepack()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfDatePack()
Function to compact dates
------------------------------------------------------------------------------
Syntax:

     dfDatePack(<dDate>) --> cPackData

Parameters:

     <dDate>    Date to compact

Returns:

     <cPackData> Compacted Date

Description:

     Permits to reduce the occupancy (usage)  of a date field  from 8 to 4
     characters

Example:

     LOCAL cTime:= TIME()
     LOCAL dDate:= DATES()
     LOCAL cTimePack:= dfTimePack(cTime)
     LOCAL cDatePack:= dfDatePack(dDate)
     
     CLS
     
     ? cTime, cTimePack, dfTimeUnPack(cTimePack)
     ? dDate, cDatePack, dfDateUnPack(cDatePack)

See also:

     dfDateUnPack(), dfTimePack(), dfTimeUnPack()

See Also: dfDateUnPack() dfTimePack() dfTimeUnPack()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson