Using Joda time to get current wall time for a given Time Zone

前端 未结 3 747
深忆病人
深忆病人 2021-02-02 16:24

The requirement is to simply to get the current wall time (including the correct DST adjustment) for a given Time Zone.

There seems to be a few questi

3条回答
  •  心在旅途
    2021-02-02 17:09

    Have you looked at the DateTime constructor:

    DateTime(DateTimeZone zone) 
    

    This constructs a DateTime representing the current time in the specified timezone.

提交回复
热议问题