DosGetDateTime: Difference between revisions
Appearance
No edit summary |
m formatting |
||
Line 1: | Line 1: | ||
==DosGetDateTime== | ==DosGetDateTime== | ||
;DosGetDateTime(pdtm) | ;DosGetDateTime(pdtm) : Get the current date and time. | ||
Get the current date and time. | |||
=== Parameters === | === Parameters === | ||
; pdtm - [[OS2 API:DataType:PDATETIME|PDATETIME]] - input : | ; pdtm - [[OS2 API:DataType:PDATETIME|PDATETIME]] - input : Pointer to a [[OS2 API:DataType:DATETIME|DATETIME]] structure where the date and time information is to be stored. | ||
=== Constants === | === Constants === | ||
Line 28: | Line 26: | ||
... | ... | ||
[[OS2 API:DataType:PDATETIME|PDATETIME]] pdtm; | [[OS2 API:DataType:PDATETIME|PDATETIME]] pdtm; | ||
[[OS2 API:DataType:DATETIME|DATETIME]] | [[OS2 API:DataType:DATETIME|DATETIME]] dtm; | ||
[[OS2 API:DataType:APIRET|APIRET]] | [[OS2 API:DataType:APIRET|APIRET]] rc; | ||
... | ... | ||
pdtm = &dtm; | pdtm = &dtm; |
Revision as of 05:16, 1 May 2006
DosGetDateTime
- DosGetDateTime(pdtm)
- Get the current date and time.
Parameters
- pdtm - PDATETIME - input
- Pointer to a DATETIME structure where the date and time information is to be stored.
Constants
Returns
This function returns an APIRET with no values.
Module
Define (C/C++)
#define INCL_DOSDATETIME #include <os2.h>
Export name/Ordinal
DosGetDateTime. DOSCALLS.DLL 230.
Calling conversion
Example Code
... PDATETIME pdtm; DATETIME dtm; APIRET rc; ... pdtm = &dtm; rc = DosGetDateTime (pdtm); ...
Related Functions
OS Version Introduced
OS/2 1.x