Film-Tech Cinema Systems
Film-Tech Forum ARCHIVE


  
my profile | my password | search | faq & rules | forum home
  next oldest topic   next newest topic
» Film-Tech Forum ARCHIVE   » Operations   » Digital Cinema Forum   » DOLBY DSS/DSP 100 lost time/date (Page 3)

 
This topic comprises 3 pages: 1  2  3 
 
Author Topic: DOLBY DSS/DSP 100 lost time/date
Harold Hallikainen
Jedi Master Film Handler

Posts: 906
From: Denver, CO, USA
Registered: Aug 2009


 - posted 03-05-2019 08:21 PM      Profile for Harold Hallikainen   Author's Homepage   Email Harold Hallikainen   Send New Private Message       Edit/Delete Post 
True, but I do not have the source for time.c . Calculating out the date for dates beyond 2038 would be interesting. I really don't know how they do it for the signed 32 bit integer. I just call the function and back comes a date and time string!

Harold

 |  IP: Logged

Marcel Birgelen
Film God

Posts: 3357
From: Maastricht, Limburg, Netherlands
Registered: Feb 2012


 - posted 03-06-2019 02:46 AM      Profile for Marcel Birgelen   Email Marcel Birgelen   Send New Private Message       Edit/Delete Post 
I think this is the moment where Bruce should chime in and tell you about the virtues of having your own OS. [Wink]

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. [Wink]

 |  IP: Logged



All times are Central (GMT -6:00)
This topic comprises 3 pages: 1  2  3 
 
   Close Topic    Move Topic    Delete Topic    next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:



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.

© 1999-2020 Film-Tech Cinema Systems, LLC. All rights reserved.