Newsgroups: fj.lang.c
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!aist-nara!odins-suita!chiba-ns!sakunami!ayashi!kaneko
From: kaneko@ccedu.sendai-ct.ac.jp (Yutaka Kaneko)
Subject: Re: $B%7%9%F%`F|IU$N<hF@(B
X-Nntp-Posting-Host: saikachi
Message-ID: <E96vos.6y6@ayashi.cc.sendai-ct.ac.jp>
Lines: 39
Sender: news@ayashi.cc.sendai-ct.ac.jp (SNCT NetNews Manager)
Organization: Sendai National College of Technology
X-Newsreader: mnews [version 1.18PL3] 1994-08/01(Mon)
References: <33606A5D.5577@ca.aif.or.jp>
Date: Fri, 25 Apr 1997 10:26:52 GMT
Xref: galaxy.trc.rwcp.or.jp fj.lang.c:3990
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=3990&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.

  $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$N:9$,LdBj$K$J$k$h$&$J%1(B
$B!<%9$O$^$l$J$N$GDL>o$O5$$K$7$J$$$G$b$h$$$G$7$g$&!#(B

double x,y,z=1.8;main(a,b){x=(time( /*       $B6b;R(B $BM5(B(Yutaka Kaneko)          */
0)%935)/472;while(!0){y=x;x=2-z*(x- /* Sendai National College of Technology */
1)*(x-1);a=(x*631);a%=78;b=(y*95);b /*     kaneko@cc.sendai-ct.ac.jp         */
%=24;printf("\033[%d;%dHx\n",b,a);}}/*Evanx08,Megax05,Escax07,Fushx16,WedPx07*/
