15,566 karma · joined Aug 18, 2012 (14y ago) · 3,425 submissions
https://burntsushi.net
[ my public key: https://keybase.io/burntsushi; my proof: https://keybase.io/burntsushi/sigs/F85E7EUozUtRvdv1a8NpNW8HBSSJ4cK9bhTgqDAslZA ]
comment 1w ago · link · parent
> The second problem is the fact that the timezone definitions change according to the actual rules in effect in history. This is sometimes not what you want. Indeed I notice that sometimes all date libraries use the proleptic Gregorian calendar meaning our current calendar system extended backwards; no library that I know of automatically switches to Julian calendars before the cutoff. Why this inconsistency? I’d argue that when most humans express a zoned time they expect the current rules to be extended backwards. People forget the daylight saving rules change in the 2000s when talking about times before that change and expect the current rules.
Good question. One part of this answer is that the IANA tzdb does not only contain daylight saving time transitions. It also includes transitions from one offset to another, perhaps because daylight saving time was stopped or started. The other part of this answer is, I would guess, more pragmatic. Namely, we have structured data delineating time zone transitions back at least a century. If you go far enough back, then indeed, time zone transitions stop happening. We, however, do not, as far as I'm aware, have shared structured data delineating changes in calendar. This would also need to be organized by both location and time. For example, the Julian calendar was not dropped in favor of the Gregorian instantaneously everywhere. Some countries, like Russia, continued using the Julian calendar into the 20th century.
comment 1w ago · link · parent
5.
Jiff 1.0: A datetime library for Rust(burntsushi.net ↗)
444 points · by burntsushi · 1w ago · 102 comments
comment 5mo ago · link · parent
Thankfully it was only ever a passing curiosity for me. A bucket list kind of thing. I am now very happy to replace with many other amazing experiences I hope to have. :-)
comment 5mo ago · link · parent
My own PCP gave me a GAD diagnosis initially. I don't even know what he should have done to be honest, or to the extent that it colored evaluation from other doctors.
The time from when I first saw my PCP to when I saw a neurologist was about a month. Maybe if I saw a neurologist earlier it would have been "too early"? I have no idea.
My main quibble still remains with the ER who sent me to a psych unit without a neurologist seeing me. But I'm not a doctor and I don't know how to evaluate the reasonableness of it. It was very likely multi-factor. (And I was eager to get into an in-patient facility due to being so unstable at home.)
comment 5mo ago · link · parent
> it’s rare to see this condition mentioned outside a specialist neurology setting
I only realized this from the Wikipedia article on anti-NMDA receptor encephalitis, but it's apparently what the main character (Will) suffered from in the Hannibal TV show. I watched that show and loved it. I had no idea about the specific disease he suffered from. If you had asked me before this, I probably would have said that he had something like bipolar, like Carrie in the TV show Homeland.
> imagine your immune system spontaneously deciding to run an ablation test on the live neural network inside your skull
This is brilliant. I'm totally going to steal this.
> Today, life is mostly back to normal.
This is heartwarming. I feel almost "normal" now. There are some lingering issues, but there's improvement. I hope it continues.
> My first symptoms were brief “twitches” that appeared simultaneously in my left arm and face. I later learned they were seizures.
This made me remember that I had some twitching too. I had two EEGs, but AFAIK, no evidence of seizures was found. Thank you for this, because it reminded me to write this down as a question to ask my doctors at my next follow-up.
> Wishing you the very best, and I hope the CIELO trial delivers positive results for all of us.
I'm feeling even more excited about being in the trial after the response from everyone! Especially those with AE.
-----
If you don't mind me asking, how long was it between when you first noticed symptoms and when you got treatment? And what treatment did you get? (The same as me? IVIG and IV steroids?)
comment 5mo ago · link · parent
> I noticed you said in another comment that you were treated with antipsychotics in the psych ward. Would you say they had any effect in lessening the symptoms?
Your intuition is right. The antipsychotic was actually prescribed by a psychiatrist during my second hospital stay at Brigham and Women's and not at a psych ward. (I would later enter another psych ward where the psychiatrist there prescribed a different antipsychotic and took me off of the old one.) I essentially begged for it because I wanted something that would help me that wasn't Ativan. Ativan helped a lot, but I was so concerned about it being a benzo and getting addicted to it. I wanted it to help me sleep too. The antipsychotic was prescribed in the window of time where they thought it was MS. I hadn't gotten the positive antibody test result back yet.
I'm being a bit vague here in terms of why I wanted it. I don't mind going into more detail personally, but it gets extremely dark and extremely intense very fast. I don't know if that's something I want to publicize yet. As bad as my OP sounds, it was in fact way worse.
> And, another thing. Have you ever tried dissociative drugs(like ketamine, PCP, DXM), and if so, how similar would you say your experience was to those drug experiences? Of course, feel free to tell me to fuck off if you don't want to discuss that in a public forum.
I have not. The hardest drug I've ever done was a few puffs from a vape pen of marijuana about 6 years ago. Otherwise, before the encephalitis, I would say I was a moderate consumer of alcohol and tobacco (via cigars, not cigarettes). Once the encephalitis started (early March) I went cold turkey on both alcohol and tobacco and did not suffer any withdrawal effects AFAIK. (This was a question asked by many doctors, many times, repeatedly. I was always proud to give a consistent, "Zero alcohol since March N. Zero cigars sinces March N.")
Prior to that I had considered trying LSD some day. After this, not a fucking chance.
comment 5mo ago · link · parent
And yes, at one point, the doctors said I almost certainly had MS. For exactly the reasons you stated: my symptoms were consistent with it. It was only when the antibody in my cerebral spinal fluid came back positive that my diagnosis shifted to anti-NMDA receptor encephalitis for certain. Prior to that, I already had a follow-up scheduled with an MS specialist. I'm guessing that was done because of how rare anti-NMDA receptor encephalitis is.
comment 5mo ago · link · parent
I have since been scanning documents like a boss. Lol.
comment 5mo ago · link · parent
And even if I did have an MS, there are various sub-types that require going through something quite complicated call the McDonald criteria: https://en.wikipedia.org/wiki/Diagnosis_of_multiple_sclerosi...
comment 5mo ago · link · parent
I had been trying to use Gemini during my bout of encephalitis before treatment. I wasn't really trying to diagnose myself, but instead, was looking up side effects of the various (psychiatric) medications I was on. At the time, I (but not my wife) had thought all biological causes had been ruled out due to testing from my PCP. To be clear, I wasn't really in my right mind, so whether this was a reasonable belief or not (likely not) isn't something to be assumed. Like, I just thought I had GAD. Or OCD. Or something latent that had just all of a sudden started rearing its ugly head.
I found Gemini's reporting of side effects of medication to not be helpful. Especially because it led me to wonder if some of the things were "in my head" (without a doctor even needing to say it). Anyway, there was never a point at which any AI suggested anti-NMDA receptor encephalitis. That didn't really come up until I got into the hospital and had an abnormal brain MRI.
I've since switched to ChatGPT, which I find to be leagues better than Gemini personally.
This is all really hard to explain, so I apologize if this doesn't make a lot of sense.
comment 5mo ago · link · parent
There was no psychiatrist that I could see at the ER as far as I know. I had to get checked into the psychiatric facility in order to see one. So that was another dimension here where I was enthusiastic about going, and probably made the decision by the ER to send me there easier.
comment 5mo ago · link · parent
I also have blood relatives with lupus and rheumatoid arthritis.
comment 5mo ago · link · parent
Decompensating at an increasing and alarming rate, not typical from a psych perspective. Also not in a healthy young male with no history. My wife was able to substantiate this claim with my detailed timeline. (I had some emails and wrote a lot of stuff down, as is my nature, during this time.)
My left eye was "squinty."
comment 5mo ago · link · parent
Thank goodness for health insurance. (Which is very shallow gratitude since the system is broken in many ways. But this ended up not being a financial burden for us, which I am very thankful for.)
comment 5mo ago · link · parent
Funny story (that I didn't include in the blog) is that I actually wound up in a psychiatric facility for a second time after I was in-and-out of Brigham and Women's on 3 separate occasions. I was in a much better state mentally and physically, and this particular facility (McLean Hospital) was way better than the first one I was in. The circumstances were different and I was happy to be there because things were still very rocky at home. And very dark. So my wife and I felt it better that I be in an in-patient facility at this point, which came right before my official anti-NMDA receptor encephalitis diagnosis.
Anyway, the funny story is that I showed up to McLean, after being transferred from Brigham and Women's, with a physical copy of my wife's PoA over me and a health care proxy. The charge nurse said it was the first time he had ever seen anything like that before.