6 /* UNIX時間から時間日付等を返す (thread safe) */
8 int utime_getr(time_t tt, char ch)
14 localtime_r(&t, &tmbuf);
17 case 'y': return(tmbuf.tm_year + 1900);
18 case 'm': return(tmbuf.tm_mon + 1);
19 case 'd': return(tmbuf.tm_mday);
20 case 'w': return(tmbuf.tm_wday);
21 case 'h': return(tmbuf.tm_hour);
22 case 'i': return(tmbuf.tm_min);
23 case 's': return(tmbuf.tm_sec);
24 default : return(0); break;