12 #ifndef CMNCLIB_CMN_TIME_H
13 #define CMNCLIB_CMN_TIME_H
45 #define CMN_TIME_FORMAT_SIZE_ALL (19 + 1)
46 #define CMN_TIME_FORMAT_SIZE_ALL_SHORT (14 + 1)
47 #define CMN_TIME_FORMAT_SIZE_DATE (10 + 1)
48 #define CMN_TIME_FORMAT_SIZE_DATE_SHORT ( 8 + 1)
49 #define CMN_TIME_FORMAT_SIZE_TIME ( 8 + 1)
50 #define CMN_TIME_FORMAT_SIZE_TIME_SHORT ( 6 + 1)
53 #define CMN_TIME_DATETIME_STRING_BUFFER_SIZE (160)
D_EXTERN char * CmnTime_Format(const CmnTimeDateTime *datetime, const CmnTimeFormatType type, char *buf)
現在時刻文字列生成
Definition: CmnTime.c:280
int isdst
Definition: CmnTime.h:30
int dayOfMonth
Definition: CmnTime.h:24
D_EXTERN char * CmnTimeDateTime_ToString(const CmnTimeDateTime *datetime, char *buf)
CmnTimeDateTimeを文字列に変換する
Definition: CmnTime.c:226
int month
Definition: CmnTime.h:23
D_EXTERN CmnTimeDateTime * CmnTimeDateTime_SetBySerial(CmnTimeDateTime *datetime, time_t time)
日時情報を設定する
Definition: CmnTime.c:136
D_EXTERN CmnTimeDateTime * CmnTimeDateTime_Add(CmnTimeDateTime *datetime, int year, int month, int day, int hour, int minute, int second)
日時情報を設定する
Definition: CmnTime.c:175
D_EXTERN CmnTimeDateTime * CmnTimeDateTime_SetNow(CmnTimeDateTime *datetime)
現在日時を取得する
Definition: CmnTime.c:79
int hour
Definition: CmnTime.h:27
D_EXTERN CmnTimeDateTime * CmnTimeDateTime_AddBySerial(CmnTimeDateTime *datetime, time_t time)
日時情報を設定する
Definition: CmnTime.c:210
int dayOfYear
Definition: CmnTime.h:26
int second
Definition: CmnTime.h:29
time_t time
Definition: CmnTime.h:21
int minute
Definition: CmnTime.h:28
D_EXTERN void CmnTime_Sleep(unsigned long long msec)
指定ミリ秒スリープする
Definition: CmnTime.c:335
CmnTimeFormatType
Definition: CmnTime.h:35
int year
Definition: CmnTime.h:22
int dayOfWeek
Definition: CmnTime.h:25
struct tag_CmnTimeDateTime CmnTimeDateTime
D_EXTERN CmnTimeDateTime * CmnTimeDateTime_Set(CmnTimeDateTime *datetime, int year, int month, int day, int hour, int minute, int second, int isdst)
日時情報を設定する
Definition: CmnTime.c:103
long timezone
Definition: CmnTime.h:31