类 DefaultTimeZoneOffset
java.lang.Object
cn.taketoday.gradle.tasks.bundling.DefaultTimeZoneOffset
Utility class that can be used to change a UTC time based on the
default TimeZone. This is required because
ZipEntry.setTime(long) expects times in the default timezone and not UTC.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) longremoveFrom(long time) Remove the default offset from the given time.(专用程序包) FileTimeremoveFrom(FileTime time) Remove the default offset from the given time.
-
字段详细资料
-
INSTANCE
-
defaultTimeZone
-
-
构造器详细资料
-
DefaultTimeZoneOffset
DefaultTimeZoneOffset(TimeZone defaultTimeZone)
-
-
方法详细资料
-
removeFrom
Remove the default offset from the given time.- 参数:
time- the time to remove the default offset from- 返回:
- the time with the default offset removed
-
removeFrom
long removeFrom(long time) Remove the default offset from the given time.- 参数:
time- the time to remove the default offset from- 返回:
- the time with the default offset removed
-