/[LeafOK_CVS]/lbbs/src/common.c
ViewVC logotype

Diff of /lbbs/src/common.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.35 by sysadm, Thu Jun 26 12:17:02 2025 UTC Revision 1.36 by sysadm, Wed Jul 2 04:17:33 2025 UTC
# Line 54  volatile int SYS_child_exit = 0; Line 54  volatile int SYS_child_exit = 0;
54  volatile int SYS_conf_reload = 0;  volatile int SYS_conf_reload = 0;
55    
56  static const char *weekday[] = {  static const char *weekday[] = {
57          "Ìì", "Ò»", "¶þ", "Èý", "ËÄ", "Îå", "Áù"};          "天", "一", "二", "三", "å››", "五", "å…­"};
58    
59  // Common function  // Common function
60  const char *get_time_str(char *s, size_t len)  const char *get_time_str(char *s, size_t len)
# Line 64  const char *get_time_str(char *s, size_t Line 64  const char *get_time_str(char *s, size_t
64    
65          time(&curtime);          time(&curtime);
66          localtime_r(&curtime, &local_tm);          localtime_r(&curtime, &local_tm);
67          size_t j = strftime(s, len, "%b %d %H:%M ÐÇÆÚ", &local_tm);          size_t j = strftime(s, len, "%b %d %H:%M 星期", &local_tm);
68    
69          if (j == 0 || j + strlen(weekday[local_tm.tm_wday]) + 1 > len)          if (j == 0 || j + strlen(weekday[local_tm.tm_wday]) + 1 > len)
70          {          {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1