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