gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 49/69: accessibilityDate


From: gnunet
Subject: [taler-taler-ios] 49/69: accessibilityDate
Date: Fri, 19 Jan 2024 09:02:22 +0100

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit 4eb6003b04be96aa5adb12c908270f457a05a330
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Jan 18 00:03:00 2024 +0100

    accessibilityDate
---
 TalerWallet1/Helper/TalerDater.swift | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/TalerWallet1/Helper/TalerDater.swift 
b/TalerWallet1/Helper/TalerDater.swift
index 427e0f9..b3f5e19 100644
--- a/TalerWallet1/Helper/TalerDater.swift
+++ b/TalerWallet1/Helper/TalerDater.swift
@@ -80,6 +80,15 @@ public class TalerDater: DateFormatter {
         }
     }
 
+    public static func accessibilityDate(_ date: Date?) -> String? {
+        if let date {
+            let formatted = date.formatted(date: .long, time: .shortened)
+//            print(formatted)
+            return formatted
+        }
+        return nil
+    }
+
     public static func dateString() -> String {
         return shared.string(from: Date())
     }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]