[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>writing code involving timestamps >use 32 bit int

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 19
Thread images: 3

File: 1484256108909.png (127KB, 444x482px) Image search: [Google]
1484256108909.png
127KB, 444x482px
>writing code involving timestamps
>use 32 bit int
Have fun 2030s fags.
>>
>>61929907
when will it overflow at 32 bit?
>>
>his language isn't smart enough to increase to the next largest data type upon evaluation
>>
>>61930064
that's not smart. what if you're trying to save memory
>>
>>61929907
d e v i l i s h
>>
>>61930064
that's not smart. what if you're trying to save processing power by not checking for overflows constantly
>>
>>61929922
at 03:14:08 UTC on 19 January 2038
>>
$ cat /usr/include/sys/_types.h | grep time_t
typedef __int64_t __time_t; /* epoch time */


no really, just use a fucking time_t and recompile your software once Linux stops being obsolete
>>
>implying we'll make it to the 2030s
>>
File: DG8i10-XkAAPSDR.jpg (47KB, 924x439px) Image search: [Google]
DG8i10-XkAAPSDR.jpg
47KB, 924x439px
>>61932399
> implying
>>
@echo off
set year=2038
set day=19
set m=1
:lel
title %day%/%m%/%year%
set /a day+=1
if "%day%"=="31" set /a m+=1&set day=1
if "%m%"=="13" set /a year+=1&set m=1
goto lel
>>
>>61932293
>using cat | grep
>>
>>61930122
I do not think people in 2030s will care much about memory.(unless webapps become the norm)
>>
>>61930122

this is 2017 not 1985
>>
>>61929907
>writing safety-critical code using 64-timestamps
>mfw it stops working after 150 years
>>
>>61934976
> 64-bit signed time_t expands the times representable by approximately 293 billion years in both directions, which is over twenty times the present age of the universe per direction.
try again
>>
>>61932242
Why the fuck are using a signed 32 bit int fag?
>>
>>61935552
nanosecond precision timestamps
you tech illiterate
>>
File: 1422415904757.jpg (21KB, 338x332px) Image search: [Google]
1422415904757.jpg
21KB, 338x332px
>not storing dates as strings in YYY-MM-DD-hh-mm-ss format

just keep adding precision until you get it the way you like it
Thread posts: 19
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.