From e618e1b1f11fcde8d314469e2016178b27f917bd Mon Sep 17 00:00:00 2001 From: Klondike Dragon Date: Fri, 22 Mar 2024 23:14:23 -0600 Subject: [PATCH] Add getter to TZDateTime for native DateTime Allows retrieval of the equivalent native DateTime object --- lib/src/date_time.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/date_time.dart b/lib/src/date_time.dart index b5f5920..9e19a80 100644 --- a/lib/src/date_time.dart +++ b/lib/src/date_time.dart @@ -50,6 +50,9 @@ class TZDateTime implements DateTime { /// Represents the same moment as this [TZDateTime]. final DateTime _native; + /// Returns a native DateTime object representing this same point in time. + DateTime get native => _native; + /// The number of milliseconds since /// the "Unix epoch" 1970-01-01T00:00:00Z (UTC). ///