Files
mars-nwe/include/core/utcData.h
OpenAI 418e3c66ec
All checks were successful
Source release / source-package (push) Successful in 1m32s
core: import NSS UTC time helper library into libnwcore
2026-06-12 19:22:21 +02:00

69 lines
2.3 KiB
C

/****************************************************************************
|
| (C) Copyright 1985, 1991, 1993, 1996 Novell, Inc.
| All Rights Reserved.
|
| This program is free software; you can redistribute it and/or
| modify it under the terms of version 2 of the GNU General Public
| License as published by the Free Software Foundation.
|
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
|
| You should have received a copy of the GNU General Public License
| along with this program; if not, contact Novell, Inc.
|
| To contact Novell about this file by physical or electronic mail,
| you may find current contact information at www.novell.com
|
|***************************************************************************
|
| NetWare Advance File Services (NSS) module
|
|---------------------------------------------------------------------------
|
| $Author: taysom $
| $Date: 2004-12-31 01:10:58 +0530 (Fri, 31 Dec 2004) $
|
| $RCSfile$
| $Revision: 465 $
|
|---------------------------------------------------------------------------
| This module is used to:
| define all of the prototypes and globals for the
| set command infrastructure.
|
|
+-------------------------------------------------------------------------*/
#ifndef _UTCDATA_H_
#define _UTCDATA_H_
#ifndef _OMNI_H_
# include <omni.h>
#endif
/*-------------------------------------------------------------------------
* Access days of the month values appropriatly
*-------------------------------------------------------------------------*/
extern WORD monthTotal[13];
extern WORD monthLeapTotal[13];
extern NINT secondsAtEndOfMonth[13];
extern NINT secondsAtEndOfLeapMonth[13];
extern NINT MonthDays[13];
/*-------------------------------------------------------------------------
* MACROS for accessing MONTH NAME STRINGS appropriatly
*-------------------------------------------------------------------------*/
#if NSS_MSG_TAGS IS_ENABLED
extern NINT MonthNamesIDX[13];
# define MONTH_NAMES(idx) (NSSMessageTable[MonthNamesIDX[(idx)]])
#else
extern char *MonthNames[13];
# define MONTH_NAMES(idx) (MonthNames[(idx)])
#endif
#endif