| LIBKYDATE(3) | Library Functions Manual | LIBKYDATE(3) |
NAME
kdk_system_get_dateformat, kdk_system_set_dateformat, kdk_system_set_24_timeformat, kdk_system_set_12_timeformat, kdk_system_get_now_dateformat,kdk_system_get_now_timeformat, kdk_system_tran_dateformat,kdk_system_nowtime,kdk_system_nowdate,kdk_system_shortweek, kdk_system_longweek,kdk_system_second,kdk_system_logn_dateinfo,kdk_system_gjx_time, kdk_date_freeall,kdk_free_dateinfo,kdk_free_logn_dateinfo,kdk_system_set_long_dateformat, kdk_system_set_short_dateformat,kdk_system_get_longformat_date,kdk_system_get_shortformat_date, kdk_system_get_longformat,kdk_system_get_shortformat,kdk_system_longformat_transform, kdk_system_shortformat_transform,kdk_system_login_lock_dateinfo,kdk_system_timeformat_transform, kdk_free_timeinfo - 日期和时间格式信息
SYNOPSIS
#include <libkydate.h> extern char** kdk_system_get_dateformat(); extern int kdk_system_set_dateformat(char *date); extern int kdk_system_set_24_timeformat(); extern int kdk_system_set_12_timeformat(); extern char* kdk_system_get_now_dateformat(); extern char* kdk_system_get_now_timeformat(); extern kdk_dateinfo *kdk_system_tran_dateformat(struct tm *ptr); extern char* kdk_system_nowtime(); extern char* kdk_system_nowdate(); extern char* kdk_system_shortweek(); extern char* kdk_system_longweek(); extern char* kdk_system_second(); extern kdk_logn_dateinfo *kdk_system_logn_dateinfo(char *user); extern char* kdk_system_gjx_time(char *date); extern inline void kdk_date_freeall(char **ptr); extern void kdk_free_dateinfo(kdk_dateinfo *date); extern void kdk_free_logn_dateinfo(kdk_logn_dateinfo *date); extern int kdk_system_set_long_dateformat(char *format); extern int kdk_system_set_short_dateformat(char *format); extern char* kdk_system_get_longformat_date(); extern char* kdk_system_get_shortformat_date(); extern char* kdk_system_get_longformat(); extern char* kdk_system_get_shortformat(); extern char* kdk_system_longformat_transform(struct tm *ptr); extern char* kdk_system_shortformat_transform(struct tm *ptr); extern kdk_logn_dateinfo *kdk_system_login_lock_dateinfo(char *user); extern kdk_timeinfo *kdk_system_timeformat_transform(struct tm *ptr); extern void kdk_free_timeinfo(kdk_timeinfo *time); Link with -lkydate.
DATA STRUCTURES
Structure kdk_dateinfo contains information related to a date:
typedef struct _kdk_dateinfo{ {
char *date; // 日期
char *time; // 时间
char *timesec; //带秒钟数时间
}kdk_dateinfo;
There are other members not documented here, which are only meant for libkydate internal use.
Structure kdk_logn_dateinfo contains information related to a login date:
typedef struct _kdk_logn_dateinfo {
char *date; // 日期
char *time; // 时间
char *week;
}kdk_logn_dateinfo;
There are other members not documented here, which are only meant for libkydate internal use.
Structure kdk_timeinfo contains information related to a time:
typedef struct _kdk_timeinfo {
char *time; // 时间
char *timesec; //带秒钟数时间
}kdk_timeinfo;
There are other members not documented here, which are only meant for libkynetinfo internal use.
Detailed Description
This library obtains or sets date and time formats.
RETURN VALUE
The return value is generally specific to the individual function called.
CONFORMING TO
These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_system_get_dateformat(), kdk_system_set_dateformat(), kdk_system_set_24_timeformat(), kdk_system_set_12_timeformat(), kdk_system_get_now_dateformat(), kdk_system_get_now_timeformat(), kdk_system_tran_dateformat(), kdk_system_nowtime(), kdk_system_nowdate(), kdk_system_shortweek(), kdk_system_longweek(), kdk_system_second(), kdk_system_logn_dateinfo(), kdk_system_gjx_time(), kdk_date_freeall(), kdk_free_dateinfo(), kdk_free_logn_dateinfo(), kdk_system_set_long_dateformat(), kdk_system_set_short_dateformat(), kdk_system_get_longformat_date(), kdk_system_get_shortformat_date(), kdk_system_get_longformat(), kdk_system_get_shortformat(), kdk_system_longformat_transform(), kdk_system_shortformat_transform(), kdk_system_login_lock_dateinfo(), kdk_system_timeformat_transform() and kdk_free_timeinfo().
SEE ALSO
kdk_system_get_dateformat(3), kdk_system_set_dateformat(3), kdk_system_set_24_timeformat(3), kdk_system_set_12_timeformat(3), kdk_system_get_now_dateformat(3), kdk_system_get_now_timeformat(3), kdk_system_tran_dateformat(3), kdk_system_nowtime(3), kdk_system_nowdate(3), kdk_system_shortweek(3), kdk_system_longweek(3), kdk_system_second(3), kdk_system_logn_dateinfo(3), kdk_system_gjx_time(3), kdk_date_freeall(3), kdk_free_dateinfo(3), kdk_free_logn_dateinfo(3), kdk_system_set_long_dateformat(3), kdk_system_set_short_dateformat(3), kdk_system_get_longformat_date(3), kdk_system_get_shortformat_date(3), kdk_system_get_longformat(3), kdk_system_get_shortformat(3), kdk_system_longformat_transform(3), kdk_system_shortformat_transform(3), kdk_system_login_lock_dateinfo(3), kdk_system_timeformat_transform(3) and kdk_free_timeinfo(3).
| Tue Sep 19 2023 | Linux Programmer's Manual |