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
- Need large integers and floats. Trouble with long long int and long double
- SQLBindCol for long integer value on 64Bit platform?
- will there be overflow or not in this case
- How do I make a sorted, long compression data structure?
- Facing issue while converting 18 digit double value to long
- best way to recognize and handle integer overflow in c?
- How to compress a strictly increasing sequence of Longs
- Why this error happens: SUMMARY: AddressSanitizer: heap-buffer-overflow
- Challenge of Translating Python Code to C: Implementing Luhn Algorithm for Checksum Calculation
- Using pivot_longer in R in Kaggle, producing NAs for second half of data
- Why does this code overflows even when casting?
- How do I fix my unit converter in python?
- Compare int with leading zero int
- Word width before and after multiplication
- Unable to get percentage with 'int' even though value is within range. Works with 'long' though. Why?
Related Questions in YEAR2038
- 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
- Extracting year from dataset in python - year appears a decimal point
- Is it guaranteed to be 2038-safe if sizeof(std::time_t) == sizeof(std::uint64_t) in C++?
- Do I have to re-compile glibc 2.34 itself for full 64-bit time_t support for 32-bit hardware?
- i've to union two different tables sym33 and sym and then check the difference of max svcdate and min svcdate which should be greater then 90 days
- glibc set __TIMESIZE
- 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
- systemd aborts in clock_gettime
- How do ext2/3/4 filesystems deal with 64 bit time_t?
- Is save to use System.currentTimeMillis() after 2038?
- How to add range validation for year in flutter
- How to use mktime64(), time64() and localtime64() function with 32-bit time library?
- touch function in PHP 7 64-bit does not handle dates beyond 2038
- How to make this Year-2038-problem junit test work as expected
- time_t to boost date conversion giving incorrect result
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 # Hahtags
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?