|
|
|
|
|
by ralferoo
661 days ago
|
|
I came across a reasonable amount of perl code that happily formatted the year 2000 as 19100. The functions that converted from seconds-since-1970 to a "human readable" parts returned a year relative to 1900. Most people would format using sprintf("%d/%d/%d",$d,$m+1,$y+1900) but some code I inherited instead used sprintf("%d/%d/19%d",$d,$m+1,$y). I never did figure out if it was due to stupidity or malice. |
|