Newsgroups: fj.lang.c
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!spinnews!news.sainet.or.jp!usenet
From: Kazuyuki Shigenobu <shige@sainet.or.jp>
Subject: Re: =?iso-2022-jp?B?GyRCJTclOSVGJWBGfElVJE48aEZAGyhK?=
X-Nntp-Posting-Host: urwp1ag.sainet.or.jp
Content-Type: text/plain; charset=iso-2022-jp
Message-ID: <33610613.5123@sainet.or.jp>
Sender: usenet@sainet.or.jp
Content-Transfer-Encoding: 7bit
Organization: SaiNet User.
References: <33606A5D.5577@ca.aif.or.jp> <E96vos.6y6@ayashi.cc.sendai-ct.ac.jp>
Mime-Version: 1.0
Date: Fri, 25 Apr 1997 19:29:23 GMT
X-Mailer: Mozilla 3.0 [ja] (Win95; I)
Lines: 49
Xref: galaxy.trc.rwcp.or.jp fj.lang.c:3985
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=3985&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.
X-reformat-error: Irregular or illegal code in the original archived article. There may be some illegible parts.

Yutaka Kaneko wrote:
> 
>   $B6b;R!w@gBfEEGH$G$9!#(B
> 
> In article <33606A5D.5577@ca.aif.or.jp>
> f4122878@ca.aif.or.jp writes:
> >> $B=E?.!w#J#F#C$H?=$7$^$9!#(B
> >>
> >> time.h $B$N(B struct tm $B9=B$BNEy$r;HMQ$7$F!"(B
> >> $B%7%9%F%`F|IU$r<hF@$7$?$$$N$G$9$,!"(B
> >> $B$I$&%W%m%0%i%_%s%0$9$l$PNI$$$+J,$+$j$^$;$s!#(B
> >> $B65$($F$$$?$@$1$^$9$G$7$g$&$+(B ...$B!)(B
> 
> #include <sys/time.h>
> char *wday[] = {
>     "$BF|(B", "$B7n(B", "$B2P(B", "$B?e(B", "$BLZ(B", "$B6b(B", "$BEZ(B"
> };
> main()
> {
>     long t;
>     struct tm *tm;
> 
>     t = time(0);
>     tm = localtime(&t);
>     printf("$B:#F|$O!"(B%d$BG/(B%d$B7n(B%d$BF|(B%s$BMKF|$G$9!#(B\n",
>         tm->tm_year, tm->tm_mon+1, tm->tm_mday, wday[tm->tm_wday]);
> }
> 
>   $B$A$J$_$K%?%$%`%>!<%s$,F|K\$K@_Dj$5$l$F$$$k%7%9%F%`$G$O!"(B
> localtime()$B$G$OF|K\I8=`;~$G$NF|IU$d;~9o$,F@$i$l$^$9!#6(Dj@$(B
> $B3&;~(B(UTC)$B$rF@$k$K$O(Bgmtime() $B$r;H$$$^$9!#(B
> 
>   gmtime()$B$G$9$,!"%^%K%e%"%k$K$O%0%j%K%C%8I8=`;~(B(GMT)$B$rJV$9(B
> $B$H=q$$$F$"$j$^$9$,!"(Bntp$B$J$s$+$GF14|$5$;$F$$$k>l9g!"F@$i$l$k(B
> $B$N$O(BUTC$B$J$s$G$9$h$M$'!#$^$"!"$3$l$i(B\x{fffd}\x{3259}\x{fffd}\x{fffd}$B$B:9$,LdBj$K$J$k$h$&$J%1(B\x{fffd}\x{325a}
> $B!<%9$O$^$l$J$N$GDL>o$O5$$K$7$J$$$G$b$h$$$G$7$g$&!#(B

$B6b;R!w@gBfEEGH$5$s!"$5$C$=$/$N%U%)%m!<$r(B
$B$"$j$,$H$&$4$6$$$^$7$?!#(B

$B%+!<%K%O%s!&%j%C%A!<$N!V%W%m%0%i%_%s%08@8l#CBh#2HG!W$r(B
$BFI$s$G$$$?$i!"(Btime $B4X78$N%i%$%V%i%j4X?t72$r$I$&;H$C$F(B
$B$$$$$+!":.Mp$7$F$7$^$$$^$7$?!#(B^^;)

--
Kazuyuki Shigenobu
E-Mail   : shige@sainet.or.jp (Home)
           f4122878@ca.aif.or.jp (Office)
HomePage : http://www.sainet.or.jp/~shige/
