org.jiucai.appframework.base.util
类 TimeUtil

java.lang.Object
  继承者 org.jiucai.appframework.common.util.BaseUtil
      继承者 org.jiucai.appframework.base.util.DateTimeUtil
          继承者 org.jiucai.appframework.base.util.TimeUtil
直接已知子类:
DateUtil

public class TimeUtil
extends DateTimeUtil

有关日期工具类(extends TimeUtil) TimeUtil主要功能有: 1.各种日期类型(字符,util.Date,sql.Date,Calendar等)转换 2.获取指定日期的年份,月份,日份,小时,分,秒,毫秒 3.获取当前/系统日期(指定日期格式) 4.获取字符日期一个月的天数 5.获取指定月份的第一天,最后一天 DateUtil主要功能有: 1.日期比较 2.获取2个字符日期的天数差,周数差,月数差,年数差 3.日期添加 4.判断给定日期是不是润年


字段摘要
 
从类 org.jiucai.appframework.base.util.DateTimeUtil 继承的字段
DEFAULT_LOCALE, DEFAULT_PATTERN, DEFAULT_TIMEZONE
 
从类 org.jiucai.appframework.common.util.BaseUtil 继承的字段
log
 
构造方法摘要
TimeUtil()
           
 
方法摘要
static String getNowOfDateByFormat(String p_format)
          返回当前时间的字符串
static String getYerterdayOfDateByFormat(String p_format)
          返回昨天时间的字符串
 
从类 org.jiucai.appframework.base.util.DateTimeUtil 继承的方法
getDateTime, getDateTimeFormatter, getDateTimeFromYearWeek, getFormatedDate, getFormatedDate, getFormatedDateTime, getYearMonth, getYearWeek, parseDateTime
 
从类 org.jiucai.appframework.common.util.BaseUtil 继承的方法
convertMapValue
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

TimeUtil

public TimeUtil()
方法详细信息

getYerterdayOfDateByFormat

public static String getYerterdayOfDateByFormat(String p_format)
返回昨天时间的字符串

参数:
p_strDate - 指定月份
p_formate - 日期格式
返回:
String 时间字符串

getNowOfDateByFormat

public static String getNowOfDateByFormat(String p_format)
返回当前时间的字符串

参数:
p_strDate - 指定月份
p_formate - 日期格式
返回:
String 时间字符串


Copyright © 2013. All Rights Reserved.