Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
<rant>
If switching to a 64-bit value for time_t meant that "everything will continue to work just fine", 32 bit time_ts would have been something of the past already.

There's a lot more to it than that. First, it's a matter of synchronization. Compiling a piece of software that uses 64 bit time_t and linking that (either at compile, or run time) against a library that expects 32 bit timestamps is unlikely to work correctly. Another synchronization problem happens in client/server applications. If one side starts thinking that timestamps are 8 bytes instead of 4, you have a problem. Second problem is data. 32 bit time_t date written to a database, or serialized takes 4 bytes. But if you switch to 64 bit timestamps, you can't assume your data has suddenly changed.

Now, switching to a different time_t size doesn't have to be a problem. If everyone is aware of the potential problems and takes them into account, no major problems will arrise. In fact, problems will only arrise if people are naive enough to think that "moving to a 64-bit value will make everything to continue to just work fine". It may be telling that some vendors use time64_t instead of changing the type of time_t.

Interesting is also this Long Time Type proposal.
</rant>


In reply to Re^2: 1111111111 by Anonymous Monk
in thread 1111111111 by esskar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found