source: trunk/include/helpers/datetime.h@ 7

Last change on this file since 7 was 7, checked in by umoeller, 25 years ago

Initial checkin of helpers code, which used to be in WarpIN.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/* $Id: datetime.h 7 2000-10-27 21:27:02Z umoeller $ */
2
3
4/*
5 *@@sourcefile datetime.h:
6 * header file for datetime.c. See remarks there.
7 *
8 * Note: Version numbering in this file relates to XWorkplace version
9 * numbering.
10 *
11 *@@include #include <os2.h>
12 *@@include #include "datetime.h"
13 */
14
15/* Copyright (C) 1997-2000 Ulrich M”ller.
16 * This file is part of the XWorkplace source package.
17 * XWorkplace is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published
19 * by the Free Software Foundation, in version 2 as it comes in the
20 * "COPYING" file of the XWorkplace main distribution.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 */
26
27#ifndef DATETIME_HEADER_INCLUDED
28 #define DATETIME_HEADER_INCLUDED
29
30#if __cplusplus
31extern "C" {
32#endif
33
34 ULONG dtGetULongTime(VOID);
35
36 int dtCreateFileTimeStamp(PSZ pszTimeStamp,
37 FDATE* pfdate,
38 FTIME* pftime);
39
40 int dtCreateDosTimeStamp(PSZ pszTimeStamp,
41 DATETIME* pdt);
42
43 int dtIsLeapYear(unsigned yr);
44
45 unsigned dtMonths2Days(unsigned month);
46
47 long dtYears2Days(unsigned yr);
48
49 long dtDate2Scalar(unsigned yr,
50 unsigned mo,
51 unsigned day);
52
53 void dtScalar2Date(long scalar,
54 unsigned *pyr,
55 unsigned *pmo,
56 unsigned *pday);
57
58#if __cplusplus
59}
60#endif
61
62#endif
63
64
Note: See TracBrowser for help on using the repository browser.