WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
DateTool.h
1#ifndef _WINC_DATETOOL
2#define _WINC_DATETOOL
3
4#include <WXP/Date.h>
5#include <WXP/ForeTime.h>
6#include <WXP/String.h>
7#include <WXP/Timezone.h>
8
9namespace WXP {
10 class DateTool {
11 static const char *months[12];
12 static const char *months_lc[12];
13 static const char *day_of_week[7];
14 public:
15 static int getSeconds( const char *str );
16 static int getMinutes( const char *str );
17 static int getCurrent( String &str );
18 static int getCurrent( const char *encode, String &str );
19 static int decode( const char *str, Date &date );
20 static int decodeMonth( const char *str );
21 static const char *getMonthLower( int month );
22 static const char *getMonth( int month );
23 static const char *getMonthLong( int month );
24 static const char *getDayWeek( int day );
25 static int createLabel( const char *prefix, Date &date, Timezone &tz, int flag, String &str );
26 static int createLabel( const char *prefix, Date &date, Timezone &tz, String &str );
27 static int createLabel( Date &date, Timezone &tz, String &str );
28 static int createLabel( Date &date, String &str );
29 static int createLabel( Date &date, Timezone &tz, float hour, String &str );
30 static int createLabel( Date &date, Timezone &tz, const char *name, ForeTime &ftime, String &str );
31 static int createLabel( Date &date, Timezone &tz, const char *name, float hour, String &str );
32 static int createLabel( Date &date, const char *name, float hour, String &str );
33 static int createHourLabel( float hour, int flag, String &str );
34 static int print( int secs );
35
36 static const int NONE = 0x0;
37 static const int DAY_OF_WEEK = 0x1;
38 };
39}
40#endif
This class manipulates dates.
Definition DateTool.h:10
static int getSeconds(const char *str)
Definition DateTool.cc:36
static const int DAY_OF_WEEK
Definition DateTool.h:37
static const int NONE
Definition DateTool.h:36
static const char * getMonthLong(int month)
Definition DateTool.cc:266
static const char * getMonth(int month)
Definition DateTool.cc:246
static int createHourLabel(float hour, int flag, String &str)
Definition DateTool.cc:576
static int print(int secs)
Definition DateTool.cc:601
static int decodeMonth(const char *str)
Definition DateTool.cc:218
static int createLabel(const char *prefix, Date &date, Timezone &tz, int flag, String &str)
Definition DateTool.cc:300
static int decode(const char *str, Date &date)
Definition DateTool.cc:106
static int getCurrent(String &str)
Definition DateTool.cc:74
static const char * getMonthLower(int month)
Definition DateTool.cc:256
static const char * getDayWeek(int day)
Definition DateTool.cc:287
static int getMinutes(const char *str)
Definition DateTool.cc:56
This class stores date and time information.
Definition Date.h:8
This class defines forecast time parameters.
Definition ForeTime.h:9
This is a variable length string class.
Definition String.h:5
This class manipulates timezones.
Definition Timezone.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4