« first day (3084 days earlier)      last day (618 days later) » 

00:12
@DenysSéguret BTW youtu.be/nhKjLqCzc4c Silicon Valley Bank
as always work of quality on this channel
 
12 hours later…
11:58
@Stargateur Nope! If a shop is open 09:00 to 17:00 and the TZ changes, the opening hours -- locally -- are still the same, it's the UTC time that changes. Hence, depending on the application, it may be best to store the (local time + location) as the source of truth. From there, you can compute the UTC time. It... doesn't work as well for anything cross-TZ. Then everything's just a mess.
@MatthieuM. UTC hours never change by definition
 
1 hour later…
 
2 hours later…
14:48
do you think we could add:
impl<T> From<T> for () {
  fn from(_: T) -> Self {
    ()
  }
}
without trouble ?
It's already builtin, just use ;
what ?
the expression 0; resolves to ()
yeah... that not using the From trait sooooooo doesn't work for me
14:56
I really hate impl<T> From<T> for T so much
 
2 hours later…
17:17
@Stargateur Sure, but that's exactly the problem. If I have an appointment at 09:00 AM Monday morning, it's at 09:00 AM local time, if somehow I get informed that Summer Time doesn't take into effect this year (it's scheduled for tonight, by the way), my appointment will still be at 09:00 AM local time, but it'll change from 07:00 UTC to 08:00 UTC. Local time may be the authoritative time, depending on usecases.
@MatthieuM. AFAIK that false, UTC never change that the principe of UTC, sure your local time could change from UTC+1 to UTC+2 but that doesn't change the UTC that you would register into a database, 13 UTC is always 13 UTC, but localtime could change from UTC+1 to UTC+2
then if your app get configured to go from UTC+1 to UTC+2 than you would just need to use the utc from database and add +2 instead of 1
if you register your time in local time you would have trouble to go from UTC+1 to UTC+2
No, you're wrong. If the appointment is at 09:00 AM Paris time on Monday, then it's (currently) at 07:00 UTC. However, if Summer Time doesn't take effect this week-end, then the appointment is still at 09:00 AM Paris time on Monday, but now at 08:00 UTC.
the only reason I see to register localtime in a database instead of raw UTC would be to "remember" what was the localtime at the moment of you put it in the database
Sure, Paris Time was supposed to be UTC+2 on Monday, and suddenly became UTC+1 because someone decided to cancel DST this year. Sure UTC didn't change.
Doesn't matter, my appointment is at 09:00 AM Paris Time, which used to be 07:00 UTC, and now is 08:00 UTC.
but here we are talking about two different thing
17:24
Are you not talking about recording times in a database?
I see your point and I agree, but I still agree with me if I log time for access to a server I want UTC, not localtime
your use case is for everyday life, my is for something totally different
also, hope that the last time we change summer/winter time, this thing sux, and europe finally decided to remove it
Indeed, for logging I'd go with UTC too. But that's my point -- it's not blindly "UTC", it depends on the usecase at hand.
even in online game we use UTC between player to organize
I... made the painful mistake to use UTC for a scheduler in the past, and learned first-hand that there's always someone mucking with timezones somewhere in the world, and that future events scheduled locally are best recorded with local time :)
there is really two mind set either you schedule in UTC, either in localtime
but a user must know the pro and con of both
17:30
In my case, it was flight times -- they're always scheduled in local time, even for international flights. Trying to record them in UTC worked pretty well in general, but some countries opt in/out of DST at the last minute, so every year, during Spring and Autumn, we needed to re-adjust a portion of the scheduled events with DB scripts :(
something that UTC would solve... :p
maybe in 100 years everyone will know and use UTC
I have a naming problem:
enum Foo {
    A,
    B,
    C,
}

struct Bar {
    foos: Vec<Foo>,
}
I need a name for individual A, B, C. For now it's ContextAtom
Foo name is hard... I have ContextMeta
and Bar is Context for now... I consider ContextContainer
I'm running out of idea
all of this are generic not real implementation
... I propose we continue discussing UTC and timezones, it's simpler than naming...
2
yet naming is so important specially that was one of my main complain in nom, and this is for my parser conbinator lib XD
I was working on the doc, and one thing after the other I improve code instead of doing the documentation XD
18:28
ok I have something, Atom => Element => Context
an element can be any atom and context job is to manage elements

« first day (3084 days earlier)      last day (618 days later) »