home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / harbb30g.zip / INCLUDE / dates.h < prev    next >
C/C++ Source or Header  |  1999-09-15  |  2KB  |  56 lines

  1. /*
  2.  * $Id: dates.h,v 1.13 1999/09/15 14:03:36 vszel Exp $
  3.  */
  4.  
  5. /*
  6.  * Harbour Project source code:
  7.  * Header file for the Date API
  8.  *
  9.  * Copyright 1999 {list of individual authors and e-mail addresses}
  10.  * www - http://www.harbour-project.org
  11.  *
  12.  * This program is free software; you can redistribute it and/or modify
  13.  * it under the terms of the GNU General Public License as published by
  14.  * the Free Software Foundation; either version 2 of the License, or
  15.  * (at your option) any later version, with one exception:
  16.  *
  17.  * The exception is that if you link the Harbour Runtime Library (HRL)
  18.  * and/or the Harbour Virtual Machine (HVM) with other files to produce
  19.  * an executable, this does not by itself cause the resulting executable
  20.  * to be covered by the GNU General Public License. Your use of that
  21.  * executable is in no way restricted on account of linking the HRL
  22.  * and/or HVM code into it.
  23.  *
  24.  * This program is distributed in the hope that it will be useful,
  25.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  26.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27.  * GNU General Public License for more details.
  28.  *
  29.  * You should have received a copy of the GNU General Public License
  30.  * along with this program; if not, write to the Free Software
  31.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit
  32.  * their web site at http://www.gnu.org/).
  33.  *
  34.  */
  35.  
  36. #ifndef HB_DATES_H_
  37. #define HB_DATES_H_
  38.  
  39. /* In msgxxx.c modules */
  40. extern char *   hb_monthsname [];
  41. extern char *   hb_daysname [];
  42.  
  43. extern double   hb_secondsToday( void );
  44. extern char *   hb_cmonth( int iMonth );
  45. extern char *   hb_cdow( int iDay );
  46. extern long     hb_dow( long lDay, long lMonth, long lYear );
  47. extern char *   hb_dtoc( const char * szDate, char * szFormattedDate, const char * szDateFormat );
  48. extern long     hb_dateEncode( long lDay, long lMonth, long lYear );
  49. extern void     hb_dateDecode( long julian, long * plDay, long * plMonth, long * plYear );
  50. extern void     hb_dateStrPut( char * szDate, long lDay, long lMonth, long lYear );
  51. extern void     hb_dateStrGet( const char * szDate, long * plDay, long * plMonth, long * plYear );
  52. extern char *   hb_dateDecStr( char * szDate, long lJulian );
  53. extern long     hb_dateEncStr( char * szDate );
  54.  
  55. #endif /* HB_DATES_H_ */
  56.