I'm writing a piece of code that I want to work even past 2038. I need to store an epoch timestamp in a map and was wondering if I am compatible going forward when I use a long long instead of an int to store tiume(NULL) or how else I best go about this? I'm aware that even using an unsigned int would give nme plenty of more room - but is that or long long the best way to go about it?
stay compatible past 2038
157 Views Asked by stdcerr At
0
There are 0 best solutions below
Related Questions in TIME
- I need help to understand the time wich my simple ''hello world'' is taking to execute
- What would be the most efficient way to store multiple sets of fixed arrays (std::vector)?
- C++ : Is there an objective universal way to compare the speed of iterative algorithms?
- (React)At rendering, initial value of zustand comesout firstly Please, give me your opinions
- Time not correct in "Device explorer" (device manager ; android studio)
- Countdown to varying payday in Javascript
- Time Limit Exceeded, Leetcode problem, 3Sum, 308 / 313 testcases passed, Why is it slow? Python
- Print time stamp in c
- TIMESTAMP Field - UTC <> Local TimeZone
- How to carry Last 24 hours value in time filter from one dashboard to another dashboard in Splunk
- Is there a way to get daylight savings time info for non local timezones
- Can I print '1' n times without using a loop in C programming?
- Embedded Linux board using a GPIO-PPS (without GPS, etc.) for time conditioning - ppstest can SEE the signal and report, but no time conditioning
- Converting streamlit library time input to milliseconds since epoch
- latest version of redshift with crazy compile times
Related Questions in POSIX
- Is it safe to assume 8-bit char on Linux and FreeBSD, based on POSIX?
- How many senders and receivers of a notification are possible in a POSIX message queue
- Does opendir() / FindFirstFile() get a snapshot of a directory?
- Differences in behavior of kill(pid, SIGINT) between Debian and Red Hat based distros
- select() always returns 0 Serial Port (UART) vxWorks
- some questions about posix_trace_* function
- In LDAP: Differentiating via OU or via attribute?
- recvmsg returns EAGAIN after select reports file descriptor is ready
- Can close of pipe's write end fail leaving reading process blocked?
- Why, on Linux (specifically Ubuntu 20.04 LTS), a POSIX shared memory object survives reboot and then suddenly belongs to the "root" user?
- file.tell() after a write is not correct in append mode?
- Map UNIX "nobody" and "nogroup" to Win32 Accounts/SIDs?
- POSIX Message Queue - "Message too long" on send
- Does the POSIX Standard really mean that a non-thread safe function can break the thread-safety of every other function?
- awk dot in regex doesn't match space
Related Questions in LONG-INTEGER
- Is "long long" = "long long int" = "long int long" = "int long long"?
- Point out potential overflow bugs
- C++ unsigned long doesn't wrap around after 4294967295
- Long.parseLong Error
- Android PdfRenderer class - Too long to render on few PDFs
- Long tap recognizer in Sprite Kit with swift
- How does int(or long long) overflow in c++ affect modulus?
- Convert String to Long using BufferReader
- Is there any way to set C++ long type size with 8 bytes (x64)?
- int(primitive) value not getting typecasted to long(primitive) implicitly
- JPQL: cast Long to String to perform LIKE search
- Should a java method accepting long value accept a Integer object?
- Trying to prevent overflow when adding two longs
- Unable to convert String to Long in Velocity Template
- Why the default resultType of MyBatis countByExample is java.lang.Long
Related Questions in YEAR2038
- "Year 2038 _problem" in Google Calendar API (Android application)
- Time as a Signed Integer
- Converting timestamps larger than maxint into datetime objects
- Created the formula but now have to break it up into years; there is a years column in original data seat with header for years
- PHP - Storing unix timestamp in mysql (avoiding the time_t overflow)
- 32 bit ruby 1.9.2p290 Time can't handle 2038?
- How to choose MySQL column data types resilient to year 2038 -rollover?
- glibc set __TIMESIZE
- Extracting year from dataset in python - year appears a decimal point
- How to get current year , previous years and next years after click on button In android kotlin which will also work fine in under android version 8
- Why std::chrono::time_point is not large enough to store struct timespec?
- stay compatible past 2038
- Year 2038 solution for embedded Linux (32 bit)?
- time(); after 2038?
- Why do timestamps have a limit to 2038?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?