xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DateTime()

Returns the current date and time from the operating system.

Syntax

DateTime() --> dDateTime

Return

The function returns the operating system's date and time setting as a DateTime value.

Description

The DateTime() function retrieves the current system date and time as reported by the system clock. The returned value is of Valtype() == "D". Use function HB_IsDateTime() to ditinguish a regular Date() value from a DateTime() value.

The display of DateTime values depends on the SET DATE format.

Note:  refer to the DateTime operator {ˆ } for a detailed explanation of DateTime values.

Info

See also:{ˆ }, CtoT(), Date(), SET CENTURY, SET DATE, SET EPOCH, StoT(), Time(), TtoC(), TtoS()
Category: Conversion functions , Date and time , xHarbour extensions
Source:rtl\dateshb.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe