Christian Selig on Nostr: With SwiftUI and the displaying auto-updating dates through the Text view, is there a ...
With SwiftUI and the displaying auto-updating dates through the Text view, is there a way to format how the time is displayed? For instance if I wanted to format “10:30 AM” as "10:30" or "ten thirty am", etc.?
Published at
2023-08-03 15:48:13Event JSON
{
"id": "76e3f484282f6b91510bdfc4e03c843c0ee37cb0607deea0c5edbe402c6d49d8",
"pubkey": "de6adda4d139627ce8f9cf05ef27c7cd1de9895363e5f303667f761bec318716",
"created_at": 1691077693,
"kind": 1,
"tags": [
[
"mostr",
"https://mastodon.social/users/christianselig/statuses/110826467745563499"
]
],
"content": "With SwiftUI and the displaying auto-updating dates through the Text view, is there a way to format how the time is displayed? For instance if I wanted to format “10:30 AM” as \"10:30\" or \"ten thirty am\", etc.?\n\nhttps://files.mastodon.social/media_attachments/files/110/826/467/470/445/764/original/de39d5bbabc9ec22.jpeg",
"sig": "83a41248ec950b9b77d8ebb875be1599f0e85b7913f9ff05760493d2a0dd3e496804c586619e42860513169354328fd7da5c04e0c86c12673a26ca6ec64685b8"
}