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
154 Views Asked by stdcerr At
0
There are 0 best solutions below
Related Questions in TIME
- Perform a task each interval
- PLSQL Need REFCURSOR DATE + TIME
- How to set timezone to the local in Rails?
- How to check duplicates in an array with a time complexity of O(n) in C lang?
- Having trouble writing a calendar, I couldn't find a detailed guide answering my questions anywhere
- How to write the current time to a new line of a .txt file on php execution
- Golang time zone parsing not returning the correct zone on ubuntu server
- CMD specifying columns to save?
- How do I check if a time is between two times which are stored as Strings in Ruby on Rails?
- having issues with python time object
- Why Google Analytics show bounce rate 100% and avg time more then 1min
- time formatting in matlab
- Python - creating a delay that takes in account the execution time
- JodaTime Comparing two dates with different time zone
- The simple timezone clock function falls into incorrect condition and I have no idea why
Related Questions in POSIX
- How to write data to stdin of the first process in a Python shell pipeline?
- C - does read() add a '\0'?
- What does a POSIX interface refer to in terms of microkernels?
- mq_timedsend() returns error 14 "bad address"
- Posix message queues and the command line?
- Copying existing function into memory buffer
- Ghost variable "idle" in terminal/cygwin?
- converting "1984-03-25 02:00:00" to POSIX gives NA
- Issue with pthread_setschedparam, system hangs
- tee stdout and stderr independently, without adding jitter
- POSIX-compliant file locking (within a single process)?
- Linux : pthread_cond_signal() is not working inside a Signal Handler()
- Compiling GRUB on Cygwin (64 bit)
- Counting bytes received by posix read()
- Bash: "invalid number" error when passing array elements value to variable
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?