|
|
|
секунды в строку
|
|||
|---|---|---|---|
|
#18+
День добрый, Уважаемые! Подскажите пож прохожему тут, как линуховые секунды отобразить в виде нормальной форматированной даты? Есть ли уже готовые функции? Вот нашел asctime(const struct tm *timeptr) , но как туда передать эти секунды не пойму... Или не то нашел? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.11.2007, 11:41:28 |
|
||
|
секунды в строку
|
|||
|---|---|---|---|
|
#18+
Плацдарм для поисков. man CTIME(3) Linux Programmer’s Manual CTIME(3) НАЗВАНИЕ asctime, ctime, gmtime, localtime, mktime - преобразует дату и времяв формат ASCII или в календарное представление СИНТАКСИС #include <time.h> char *asctime(const struct tm *tm); char *asctime_r(const struct tm *tm, char *buf); char *ctime_r(const time_t *timep, char *buf); char *ctime(const time_t *timep); 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); А также man 2 time. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.11.2007, 11:47:36 |
|
||
|
|

start [/forum/topic.php?fid=57&fpage=269&tid=2027842]: |
0ms |
get settings: |
7ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
66ms |
get topic data: |
8ms |
get forum data: |
3ms |
get page messages: |
36ms |
get tp. blocked users: |
2ms |
| others: | 229ms |
| total: | 373ms |

| 0 / 0 |
