NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/46542: date does not work too welll far in the future.
>Number: 46542
>Category: lib
>Synopsis: date does not work too welll far in the future.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 04 23:50:00 +0000 2012
>Originator: Christos Zoulas
>Release: NetBSD 5.99.59
>Organization:
Future Perfect, Inc.
>Environment:
System: NetBSD rebar.astron.com 5.99.59 NetBSD 5.99.59 (GENERIC) #7: Fri Dec 30
15:19:49 EST 2011
christos%rebar.astron.com@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
amd64
Architecture: x86_64
Machine: amd64
>Description:
Date is too slow when referring to years in the future and does not detect
overflow.
>How-To-Repeat:
[7:41pm] 10029>date -d '1000050000 years' +%s
31558531186453268
TIME=0:05.73 CPU=100.0% (5.739u 0.000s) SWAPS=0 (0+104)pf (0i+1o) (0Kc+0Kd)
[7:41pm] 10030>date -d '10000500000 years' +%s
3599
TIME=1:12.02 CPU=99.9% (72.019u 0.000s) SWAPS=0 (0+104)pf (0i+1o) (0Kc+0Kd)
>Fix:
Unk
Home |
Main Index |
Thread Index |
Old Index