mirror of
https://github.com/cc65/cc65.git
synced 2024-12-31 11:32:00 +00:00
According to http://wweicht.homepage.t-online.de/projekte.htm ("GEOS 64/128 (Wheels and MegaPatch also) use internal a two digit value for year. After the year 99 comes the year 00.") it's advisable to generally limit the year to two digits.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5364 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
2bac717dee
commit
6fa0564790
@ -462,7 +462,7 @@ static void DoHeader (void)
|
||||
t = time (NULL);
|
||||
my_tm = localtime (&t);
|
||||
|
||||
myHead.year = my_tm->tm_year;
|
||||
myHead.year = my_tm->tm_year % 100;
|
||||
myHead.month = my_tm->tm_mon + 1;
|
||||
myHead.day = my_tm->tm_mday;
|
||||
myHead.hour = my_tm->tm_hour;
|
||||
@ -568,8 +568,8 @@ static void DoHeader (void)
|
||||
"\t.word %i << 9 | %i << 5 | %i, %i << 8 | %i\n"
|
||||
"\t.word 0\n",
|
||||
myHead.geostype,
|
||||
myHead.year % 100, myHead.month, myHead.day, myHead.hour, myHead.min,
|
||||
myHead.year % 100, myHead.month, myHead.day, myHead.hour, myHead.min);
|
||||
myHead.year, myHead.month, myHead.day, myHead.hour, myHead.min,
|
||||
myHead.year, myHead.month, myHead.day, myHead.hour, myHead.min);
|
||||
|
||||
} else {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user