Quantcast
Channel: Dave Copeland :ruby:
Viewing all articles
Browse latest Browse all 642

Article 0

$
0
0

Looking at Ruby's standard lib for Times and Dates. It's a mess like Java’s, but different.

Date is a year/month/day, but will initialize "today" based on ENV[“TZ”] due to use of tzset[1]

Time is actually a timestamp of seconds since UNIX epoch, effectively a timestamp in UTC, initializable from any time zone-specified timestamp. No real conversion methods

[Missing] - “Time of day" i.e. an hour/minute/second

Does any language stdlib get this stuff right?

[1]: man7.org/linux/man-pages/man3/


Viewing all articles
Browse latest Browse all 642

Trending Articles


EASY COME, EASY GO


UPDATE SC IDOL: TWO BECOME ONE


Pokemon para colorear


Sapos para colorear


tagalog love Quotes – Tiwala Quotes


OFW quotes : Pinoy Tagalog Quotes


Tropa Quotes


“Mali man na ikaw ay ibigin ko, akoy iibig padin sayo”


RE: Mutton Pies (frankie241)


Vimeo 10.7.0 by Vimeo.com, Inc.


FORECLOSURE OF REAL ESTATE MORTGAGE


HOY PANGIT, MAGBAYAD KA!


Girasoles para colorear


Presence Quotes – Positive Quotes


Love Quotes Tagalog


Long Distance Relationship Tagalog Love Quotes


“BAHAY KUBO HUGOT”


Re:Mutton Pies (lleechef)


Ka longiing longsem kaba skhem bad kaba khlain ka pynlong kein ia ka...


Vimeo 10.7.1 by Vimeo.com, Inc.