<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Serde on The Blog of Boban Acimovic</title><link>https://acim.net/tags/serde/</link><description>Recent content in Serde on The Blog of Boban Acimovic</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>The Blog of Boban Acimovic &amp;copy; 2026</copyright><lastBuildDate>Sun, 24 Oct 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://acim.net/tags/serde/index.xml" rel="self" type="application/rss+xml"/><item><title>Parsing custom datetime format in Rust using serde</title><link>https://acim.net/blog/parsing-custom-datetime-in-rust/</link><pubDate>Sun, 24 Oct 2021 00:00:00 +0000</pubDate><guid>https://acim.net/blog/parsing-custom-datetime-in-rust/</guid><description>&lt;p&gt;Most of the date and time related crates like &lt;a href="https://github.com/time-rs/time" target="_blank" rel="noopener"&gt;time&lt;/a&gt;
 or &lt;a href="https://github.com/chronotope/chrono" target="_blank" rel="noopener"&gt;chrono&lt;/a&gt;
 already implement &lt;a href="https://github.com/serde-rs/serde" target="_blank" rel="noopener"&gt;serde&lt;/a&gt;
 traits making date or datetime parsing quite easy. This applies just if the format is standard, but what happens if the format is not standard? Let&amp;rsquo;s say we want to parse datetime looking like this &lt;code&gt;2021-10-24T07:48:26.389646Z&lt;/code&gt;. There is no timezone information so I decided to try the &lt;code&gt;PrimitiveDateTime&lt;/code&gt; type from time crate. I didn&amp;rsquo;t consider using chrono at the moment because of the &lt;a href="https://rustsec.org/advisories/RUSTSEC-2020-0159" target="_blank" rel="noopener"&gt;RUSTSEC-2020-0159&lt;/a&gt;
 problem.&lt;/p&gt;</description></item></channel></rss>