A list of products available on this site
Documentation for XtraMania's xtras
Prices and links to the online store
Xtras, PDFs, samples
Have a question? Ask us!
Contacts
Logo. www.xtramaina.com  
Home Search E-mail
ADOxtra Reference/DateTimeListToFloat()

DateTimeListToFloat()

Syntax

fltDate=DateTimeListToFloat(lstDate)
or
fltDate=DateTimeListToFloat(lstDate)

Parameters

lstDate - a property list containing date/time information to be converted in float representation. The property list may contain following properties: [#year: 2001, #month: 2, #day: 23, #Hour: 19, #Minute: 42, #Second: 23].

Returns

Float representation of the specified date/time.

Description

Converts "human readable" date/time property list to float representation of date/time values which is used in databases. Use this function to assign new value to table fields of date/time type.
The dateTimeList parameter may contain any subset of properties. If empty property list is passed, the current date and time will be returned in float form. If you specify only time part of the list, the current date will be used by default. If time part is missed it is set to midnight by default.

Site homeSearchContact author © Eugene Shoustrov. www.xtramania.com