Nican on Nostr: Golang developers: I have a web server that parsers date time from a json from the ...
Golang developers: I have a web server that parsers date time from a json from the user.
How do I parse the date time? The `time.Parse` looks extremely restricted on the format, and I would like the user to have at least some leeway. #golang
Published at
2023-11-09 23:52:46Event JSON
{
"id": "7cb6b3da326f23824bee69103e9b8f031661d3e3bbcd197471d7af197809b611",
"pubkey": "376a3864d7fde31572b0cf4f41e09917e7a6471145a0d4d0bedda7a76bbeae54",
"created_at": 1699573966,
"kind": 1,
"tags": [
[
"t",
"golang"
],
[
"proxy",
"https://furry.engineer/users/nican/statuses/111383279499206223",
"activitypub"
]
],
"content": "Golang developers: I have a web server that parsers date time from a json from the user. \n\nHow do I parse the date time? The `time.Parse` looks extremely restricted on the format, and I would like the user to have at least some leeway. #golang",
"sig": "c809a8351c1d29a52e827e3ea82ba95041ad1611f77b6613051eaf78506db21171ec1b169866fe84292ac833bd507bf2b86abd915791f4e1a2490053d356be7b"
}