blob: 5ffe49c410349dfc640b3bf188938f48c393c0e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef __DYNAMIC_SPECIAL_PHRASE_H_
#define __DYNAMIC_SPECIAL_PHRASE_H_
#include <ctime>
#include <string>
#include <glib.h>
#include "SpecialPhrase.h"
namespace PY {
class DynamicSpecialPhrase : public SpecialPhrase {
public:
DynamicSpecialPhrase (const std::string &text, guint pos) :
SpecialPhrase (pos), m_text (text) { }
std::string text (void);
const std::string dec (gint d, const gchar *fmt = "%d");
const std::string year_cn (gboolean yy = FALSE);
const std::string month_cn (void);
const std::string weekday_cn (void);
const std::string hour_cn (guint i);
const std::string fullhour_cn (void);
const std::string halfhour_cn (void);
const std::string day_cn (void);
const std::string minsec_cn (guint i);
const std::string variable (const std::string &name);
private:
std::string m_text;
time_t m_time;
};
};
#endif
|