Drobe :: The archives
About Drobe | Contact | RSS | Twitter | Tech docs | Downloads | BBC Micro

Geeks celebrate RISC OS time epoch

Published: 20th Nov 2008, 12:12:51 | Permalink | Printable

Clock-watching nerds rejoiced this week as all modern ROS machines reached a mildly baffling milestone. The OS keeps track of the current time by storing it as the number of one hundredths of a second elapsed since midnight January 1, 1900 - and this figure ticked over to 0x5000000000 in the early hours of Tuesday, provoking excitement among some.

Click here to visit this news quickie

Previous: EeePCs and RPCEmu at ROUGOL
Next: Language support module Iconv updated

Discussion

Viewing threaded comments | View comments unthreaded, listed by date | Skip to the end

Stuart really, really needs to get out more!

 is a RISC OS Userdruck on 20/11/08 1:22PM
[ Reply | Permalink | Report ]

Except it was JGH who started it.

 is a RISC OS UserIvanDobski on 21/11/08 10:43AM
[ Reply | Permalink | Report ]

Ah, I'd been seeing some of this epoch news, but hadn't been able to access my RISC OS machine to investigate. Is this all it is? From the name I assumed it was an issue like the year 2038 bug, but actually it's just the 39th bit being set for the first time, which is fine unless you're using a signed 39-bit number for storing date/time info (or an unsigned 38-bit one).

How does filecore store the date, by the way? When will RISC OS actually risk running out of dates?

 is a RISC OS Userninja on 21/11/08 2:40PM
[ Reply | Permalink | Report ]

ninja: FileCore stores them in the full 40bit format.

 is a RISC OS Userrjek on 21/11/08 3:36PM
[ Reply | Permalink | Report ]

There is no bug, and RISC OS centiseconds since 1900 datestamps are good to go up to the year 2248, 141 years after UNIX seconds since 1970 datestamp run out in 2106.

As its a multi word 40bit number I don't see any problems when it goes negative in 2174, unlike systems using 32bit UNIX datestamps in 2038 which are likely to have issues due to signed arthimetic.

 is a RISC OS Userdruck on 21/11/08 11:32PM
[ Reply | Permalink | Report ]

rjek@trite:~$ cat test.c #include <stdio.h> #include <time.h>

main() { printf("%d\n", sizeof(time_t)); }

rjek@trite:~$ ./a.out 8

 is a RISC OS Userrjek on 21/11/08 11:56PM
[ Reply | Permalink | Report ]

Buh, drobe's reformatted my comment insanely. Anyway, on almost all modern UNIX systems, time_t is 64 bit.

 is a RISC OS Userrjek on 21/11/08 11:56PM
[ Reply | Permalink | Report ]

If we were discussing modern systems, we wouldn't be talking about...

 is a RISC OS Userdruck on 24/11/08 9:02AM
[ Reply | Permalink | Report ]

Please login before posting a comment. Use the form on the right to do so or create a free account.

Search the archives

Today's featured article

  • RISC OS vs. AmigaOS
    Are we so dissimilar?
     36 comments, latest by micken on 18/08/04 8:41PM. Published: 30 Apr 2004

  • Random article

  • German ROS show this month
    Bring a friend
     2 comments, latest by highlandcattle on 3/9/06 8:23PM. Published: 3 Sep 2006

  • Useful links

    News and media:
    IconbarMyRISCOSArcSiteRISCOScodeANSC.S.A.AnnounceArchiveQercusRiscWorldDrag'n'DropGAG-News

    Top developers:
    RISCOS LtdRISC OS OpenMW SoftwareR-CompAdvantage SixVirtualAcorn

    Dealers:
    CJE MicrosAPDLCastlea4X-AmpleLiquid SiliconWebmonster

    Usergroups:
    WROCCRONENKACCIRUGSASAUGROUGOLRONWUGMUGWAUGGAGRISCOS.be

    Useful:
    RISCOS.org.ukRISCOS.orgRISCOS.infoFilebaseChris Why's Acorn/RISC OS collectionNetSurf

    Non-RISC OS:
    The RegisterThe InquirerApple InsiderBBC NewsSky NewsGoogle Newsxkcddiodesign


    © 1999-2009 The Drobe Team. Some rights reserved, click here for more information
    Powered by MiniDrobeCMS, based on J4U | Statistics
    "We accept Drobe likes to be [controversial], no problem there - but a sinister pattern has appeared over the past year or so"
    Page generated in 0.0818 seconds.