shunping commented on PR #30758:
URL: https://github.com/apache/beam/pull/30758#issuecomment-2099029697

   > My test suggests otherwise:
   > 
   > ```
   >   public static void main(String[] args) {
   >     Instant ist = Instant.now();
   >     DateTime dt1 = new DateTime(ist.getMillis());
   >     DateTime dt2 = new DateTime(ist);
   >     DateTime dt3 = ist.toDateTime();
   >     System.out.println(dt1);
   >     System.out.println(dt2);
   >     System.out.println(dt3);
   >   }
   > ```
   > 
   > output:
   > 
   > ```
   > 2024-05-07T13:54:06.250-04:00
   > 2024-05-07T17:54:06.250Z
   > 2024-05-07T13:54:06.250-04:00
   > ```
   
   Those three objects are referring to the same timestamp, but the timezones 
are different.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to