3 ms·
I think most language standard libraries just crib heavily off of the C interface, to their detriment. Using a preset date (the 2006-01-02) instead of format s
by ioddly 11y ago
I think most language standard libraries just crib heavily off of the C interface, to their detriment.
Using a preset date (the 2006-01-02) instead of format strings was really inspired; it took me about 10 minutes of staring at the documentation to understand how it worked, but it's a lot more readable once you get it.
- deleted 11y ago[deleted]
- XorNot 11y agoThe only problem is the numbering scheme is brain dead because its based off a specific layout which isn't very sensible to start with. They could've easily gone with something following significance and it would be much more memorable: 2006-05-04 03:02:01 But instead in gotime you write it with month and day out of order because they referenced this completely nonsensical format instead: Mon Jan 2 15:04:05 MST 2006 I can't remember this one for the life of me.