Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nulltype
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
181.
▲
by
nulltype
11y ago
You might just want to use the tz info database directly.
182.
▲
by
nulltype
11y ago
1. http://strftime.org/ is not easy to remember 2. You could format it with a placeholder for the hours, then replace the placeholder with the hours you want. Oddly this is only a problem for 24 hour time, 12 hour time let
183.
▲
by
nulltype
11y ago
So I guess you're saying that microservices are pointless, the real problem is tight coupling?
184.
▲
by
nulltype
11y ago
Perfect is the enemy of good I guess. If I'm building a product now, I want a library that works well now and never breaks when I upgrade to the latest version. If someone gets a great idea for a better library, make it a separate li
185.
▲
by
nulltype
11y ago
StableLib https://stablelib.com/ seems to be taking an interesting approach to libraries. Go guarantees backwards compatibility and it's awesome for developers. Why shouldn't libraries have the same guarantees?
186.
▲
by
nulltype
11y ago
So you're saying he's some sort of double agent.
187.
▲
by
nulltype
11y ago
Yeah I'm pretty skeptical of the benefits. It seems like better isolation within your monolithic application solves a lot of these issues, no need for a network socket. If you can't isolate things well enough for some reason, may
188.
▲
by
nulltype
11y ago
Yeah, I don't get why they require a location. On the other hand, -0700 isn't much longer than PST and parses directly.
189.
▲
by
nulltype
11y ago
Sorry I meant in my local environment. It's clear that the execution varies, as Parse(), unlike ParseInLocation() depends on the local environment, and play.golang.org probably uses some UTC locale.
190.
▲
by
nulltype
11y ago
You could use the zero value (t.IsZero()) for that if you wanted to. That might be more confusing than a boolean flag though.
191.
▲
by
nulltype
11y ago
I find it easier to think of times in UTC rather than local timezones. In UTC (and in reality), those times will always be the same number of hours distance from each other. If you format it in different timezones (PDT and PST) then yeah,
192.
▲
by
nulltype
11y ago
Looks like you could do this: http://play.golang.org/p/Lq3xv6f-PI
193.
▲
by
nulltype
11y ago
This works correctly if your locale includes the PST timezone (works fine on my computer). They should probably have a better example though.
194.
▲
by
nulltype
11y ago
I wasn't able to reproduce this issue, time.Parse(time.RFC3339Nano, "2015-09-10T06:31:39.442Z") seems to work correctly as long as the number of digits between "." and "Z" is 0-9
195.
▲
by
nulltype
11y ago
If you use time zones without offsets (just the name like PST instead of -0700) then you have to parse the time in a specific location http://play.golang.org/p/JzKAq09NtE I can only assume that the time zone name alone
196.
▲
by
nulltype
11y ago
Do you have any examples of annoying to parse time formats?
197.
▲
by
nulltype
11y ago
It might be easier if you use curl. curl -I https://www.reddit.com HTTP/1.1 200 OK Server: cloudflare-nginx
198.
▲
by
nulltype
11y ago
I tried to learn Python but my computer was turned off so I gave up.
199.
▲
by
nulltype
11y ago
Any chance this will show up in Chrome, or are those projects totally unrelated now?
200.
▲
by
nulltype
11y ago
These run on the same hardware, so of course, someone could implement Core Graphics on Linux. However, nobody has as far as I know, and I think it would be rather expensive and time consuming to implement that. It seems it was cheaper fo
201.
▲
by
nulltype
11y ago
What could they do to be more C compatible?
202.
▲
by
nulltype
11y ago
If you're someone like John Carmack, I imagine being able to get, say twice as far with your rocket project due to low taxes and cost of living is rather valuable to you. If he spent $8 million on that in SF, I don't think he woul
203.
▲
by
nulltype
11y ago
The recent addition in Go 1.5 of an execution tracer is also interesting: https://golang.org/cmd/trace/
204.
▲
by
nulltype
11y ago
How much does it cost to hold cash vs holding stocks?
205.
▲
by
nulltype
11y ago
codingdave seems pretty certain
206.
▲
by
nulltype
11y ago
Can anyone recommend a credit union as good as USAA that accepts people unaffiliated with the military?
207.
▲
by
nulltype
11y ago
I guess the counter question is why is USAA only available to military members?
208.
▲
by
nulltype
11y ago
You probably have adblock on.
209.
▲
by
nulltype
11y ago
Having a disabled fire alarm doesn't really benefit you either in that case.
210.
▲
by
nulltype
11y ago
How is this different from ARC?
More ›