当前位置: 技术问答>linux和unix
在gtk下,怎样获取系统时间??怎样获取当前的目录路径???
来源: 互联网 发布时间:2015-04-23
本文导语: 很急啊,谢谢帮忙!!!! | 1.NAME time - get time in seconds SYNOPSIS #include time_t time(time_t *t); NAME asctime, ctime, gmtime, localtime, mktime - transform date and...
很急啊,谢谢帮忙!!!!
|
1.NAME
time - get time in seconds
SYNOPSIS
#include
time_t time(time_t *t);
NAME
asctime, ctime, gmtime, localtime, mktime - transform date and time to
broken-down time or ASCII
SYNOPSIS
#include
char *asctime(const struct tm *tm);
char *asctime_r(const struct tm *tm, char *buf);
char *ctime(const time_t *timep);
char *ctime_r(const time_t *timep, char *buf);
struct tm *gmtime(const time_t *timep);
struct tm *gmtime_r(const time_t *timep, struct tm *result);
struct tm *localtime(const time_t *timep);
struct tm *localtime_r(const time_t *timep, struct tm *result);
time_t mktime(struct tm *tm);
2.NAME
getcwd, get_current_dir_name, getwd - Get current working directory
SYNOPSIS
#include
char *getcwd(char *buf, size_t size);
char *get_current_dir_name(void);
char *getwd(char *buf);
time - get time in seconds
SYNOPSIS
#include
time_t time(time_t *t);
NAME
asctime, ctime, gmtime, localtime, mktime - transform date and time to
broken-down time or ASCII
SYNOPSIS
#include
char *asctime(const struct tm *tm);
char *asctime_r(const struct tm *tm, char *buf);
char *ctime(const time_t *timep);
char *ctime_r(const time_t *timep, char *buf);
struct tm *gmtime(const time_t *timep);
struct tm *gmtime_r(const time_t *timep, struct tm *result);
struct tm *localtime(const time_t *timep);
struct tm *localtime_r(const time_t *timep, struct tm *result);
time_t mktime(struct tm *tm);
2.NAME
getcwd, get_current_dir_name, getwd - Get current working directory
SYNOPSIS
#include
char *getcwd(char *buf, size_t size);
char *get_current_dir_name(void);
char *getwd(char *buf);