org.fujion.common.DateUtil.getLocalTimeZone()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(130)

本文整理了Java中org.fujion.common.DateUtil.getLocalTimeZone()方法的一些代码示例,展示了DateUtil.getLocalTimeZone()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateUtil.getLocalTimeZone()方法的具体详情如下:
包路径:org.fujion.common.DateUtil
类名称:DateUtil
方法名:getLocalTimeZone

DateUtil.getLocalTimeZone介绍

[英]Returns the user's time zone.
[中]返回用户的时区。

代码示例

代码示例来源:origin: org.fujion/fujion-common

/**
 * Returns a formatter for this date format.
 *
 * @return A formatter.
 */
public FastDateFormat getFormatter() {
  boolean ignoreTime = this == WITHOUT_TIME || this == HL7_WITHOUT_TIME;
  return FastDateFormat.getInstance(pattern, ignoreTime ? TimeZone.getDefault() : getLocalTimeZone());
}

代码示例来源:origin: org.carewebframework/org.carewebframework.plugin.currentdatetime

private void updateTime() {
  Calendar cal = Calendar.getInstance(DateUtil.getLocalTimeZone());
  lblCurrentTime.setLabel(formatter == null ? "" : formatter.format(cal));
}

相关文章