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

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

Major updates; timers, LVM, miscellaneous.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/* $Id: datetime.h 14 2000-12-09 19:19:42Z 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 helpers" source package.
17 * This 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 ULONG dtDayOfWeek(ULONG day,
44 ULONG mon,
45 ULONG yr);
46
47 int dtIsLeapYear(unsigned yr);
48
49 unsigned dtMonths2Days(unsigned month);
50
51 long dtYears2Days(unsigned yr);
52
53 long dtDate2Scalar(unsigned yr,
54 unsigned mo,
55 unsigned day);
56
57 void dtScalar2Date(long scalar,
58 unsigned *pyr,
59 unsigned *pmo,
60 unsigned *pday);
61
62 BOOL dtIsValidDate(LONG day,
63 LONG month,
64 ULONG year);
65#if __cplusplus
66}
67#endif
68
69#endif
70
71
Note: See TracBrowser for help on using the repository browser.