| 695 | } |
| 696 | |
| 697 | void acl_logtime_fmt(char *buf, size_t size) |
| 698 | { |
| 699 | time_t now; |
| 700 | struct tm local_time; |
| 701 | |
| 702 | (void) time (&now); |
| 703 | (void) acl_localtime_r(&now, &local_time); |
| 704 | strftime(buf, size, "%Y/%m/%d %H:%M:%S", &local_time); |
| 705 | } |
| 706 | |
| 707 | #ifdef ACL_UNIX |
| 708 |
no test coverage detected
searching dependent graphs…