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


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

  • Social networking websites and RISC OS
    lol omghi2u r u on faceb00k yet??
     4 comments, latest by cables on 12/9/07 12:51PM. Published: 9 Sep 2007

  • Random article

  • Paperless life and RISC OS
    Wouldn't it be nice if everything was digital?
     14 comments, latest by mrtd on 10/12/04 9:12AM. Published: 6 Dec 2004

  • Useful links

    News and media:

    Top developers:
    RISCOS LtdRISC OS OpenMW SoftwareR-CompAdvantage SixVirtualAcorn

    CJE MicrosAPDLCastlea4X-AmpleLiquid SiliconWebmonster


    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
    "There has been some confusing and controversial reporting of Microdigital's presentation"
    Page generated in 0.0882 seconds.