Jump to content

DosGetDateTime: Difference between revisions

From EDM2
No edit summary
 
Line 26: Line 26:
=== Example Code ===
=== Example Code ===
  ...
  ...
  [[OS2 API:DataType:PDATETOME|PDATETIME]]  pdtm;
  [[OS2 API:DataType:PDATETIME|PDATETIME]]  pdtm;
  [[OS2 API:DataType:DATETIME|DATETIME]]    dtm;
  [[OS2 API:DataType:DATETIME|DATETIME]]    dtm;
  [[OS2 API:DataType:APIRET|APIRET]]        rc;
  [[OS2 API:DataType:APIRET|APIRET]]        rc;

Revision as of 14:59, 29 April 2005

==DosGetDateTime(pdtm) : Get the current date and time.

Parameters

pdtm - PDATETIME - input

pointer to a 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++)

  1. define INCL_DOSDATETIME
  2. 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

DosSetDateTime

OS Version Introduced

OS/2 1.x