 |
|
Home
Products
Store
Forum
Warehouse
Contact Us
|
|
|
|
This topic comprises 3 pages: 1 2 3
|
|
Author
|
Topic: DOLBY DSS/DSP 100 lost time/date
|
|
|
Marcel Birgelen
Film God
Posts: 3357
From: Maastricht, Limburg, Netherlands
Registered: Feb 2012
|
posted 03-06-2019 02:46 AM
I think this is the moment where Bruce should chime in and tell you about the virtues of having your own OS.
We're getting a bit off-topic, but well...
Usually, systems that use signed 32-bit integers for their timestamp, with 1970-1-1 as the epoch, simply can't handle any date beyond 2038 and they wrap around. Also, negative timestamps are seen as dates BEFORE the UNIX epoch. This is how it's handled according to POSIX standards, but many libraries violate that standard and some produce arbitrary results.
Now, if there are no updates for your OS and/or development stack and if you don't have access to the sources of your OS, but the system is still functional, even after it wraps around from 2^31-1 to -2^31 and users interface with your system only via your own software... Well, then you could do some kind of hack. You could replace all time functions with your own time functions, which essentially are a wrapper around the existing time functions. If you encounter a negative timestamp, you add 2^31-1 to it. Instead of time.h, you'll just need to include harold_time.h.
Maybe this is a gross oversimplification, but I don't really know the nitty-gritty details obviously.
| IP: Logged
|
|
|
|
All times are Central (GMT -6:00)
|
This topic comprises 3 pages: 1 2 3
|
Powered by Infopop Corporation
UBB.classicTM
6.3.1.2
The Film-Tech Forums are designed for various members related to the cinema industry to express their opinions, viewpoints and testimonials on various products, services and events based upon speculation, personal knowledge and factual information through use, therefore all views represented here allow no liability upon the publishers of this web site and the owners of said views assume no liability for any ill will resulting from these postings. The posts made here are for educational as well as entertainment purposes and as such anyone viewing this portion of the website must accept these views as statements of the author of that opinion
and agrees to release the authors from any and all liability.
|
|
|
|