类 LongCalendar
java.lang.Object
com.walker.infrastructure.utils.LongCalendar
类名称:长整形日期类 类描述:组合Calender,封装Calender的数字接口和方法
编 写 人: 编写日期:2002年11月16日10时52分
修 改 人:祝捷 修改日期:2002年11月29日20时50分 修改内容:由于取得的月份是从00月到11月,所以在取得的当前月份再加一 才是实际的月份
修 改 人:祝捷 修改日期:2002年12月14日16时50分 修改内容:在函数getLongTime中把时间转换为24小时制,
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static longaddMonth(long calendar, int month) 类名称:addMonth 类描述:通过参数日期及要加得月份得到一端时间后得时间 编 写 人: 编写日期:2002年11月16日10时52分 修 改 人: 修改日期: 修改内容: 版本: 目前不是很完善,需要进行修改static booleancheckCalendar(long calendar) static StringgetCalendarAfterDays(int daysNumber) 类名称:getCalendarAfterDays 类描述:获得当前日期增加N天(可正可负)后的日期 编 写 人:刘国军 编写日期: 返回参数 : yyyy/MM/ddstatic StringgetCalendarAfterDays(long longDate, int daysNumber) 说明:获得给定日期增加N天(可正可负)后的日期 作者:时克英 时间:2007-4-27static longgetCalendarByMonthAdd(long longCalendar, int num) 类名称:月份增加 类描述:月份增加 编 写 人:左靖宇 编写日期:static longgetCalendarByYearAdd(long longCalendar, int num) 年份增加 编 写 人:彭业建static String编写人:刘琨 名称:getCurrentDate 功能:得到系统当前时间 输入参数: 返回参数:String:系统当前时间static String类名称:类描述:得到当前日期的格式化显示 编 写 人:彭业建 编写日期: 返回参数 : yyyy年MM月dd日static String编写人:张显达 名称:getCurrentDateView 功能:得到系统当前时间显示,格式:yyyy/mm/dd主要是为页面显示用 输入参数: 返回参数:String:系统当前时间static StringgetCurrentDateView(long longCalendar) 编写人:张显达 名称:getCurrentDateView 功能:得到系统当前时间显示,格式:yyyy/mm/dd主要是为页面显示用 输入参数:long longCalendar 返回参数:String:系统当前时间static final String返回当前年月路径字符串,如:2014/3/static longgetDateAfterAddDateNum(long date, int amount) 类名称:类描述:计算日期加上或减去某个数后的日期 编 写 人:彭业建 编写日期static StringgetDateStringByLongDatetime(long longCalendar) 类名称:由长整型时间变为字符 类描述:通过长整数变为时间格式,可以自动适应8位或16位(格式:2002年12月13日10时25分) 编 写 人: 编写日期:2002年12月13日10时25分static StringgetDateStringByLongDatetimeForPage(long longCalendar) static long类名称:类描述:计算两个日期相差的天数,begin,end格式yyyMMdd 编 写 人:彭业建 编写日期:static longgetFirstDayOfWeek(long _cntDate) 根据输入的日期,返回所在周的第一天日期static intgetLastDayOfMonth(int monthNum, int year) static longgetLastDayOfWeek(long _firstDate) 返回本周最后一天static long返回格式例如:20070728 名称:获得当前长整形日期方法 功能:获得系统中使用长整形表示的日期 输入参数: 返回参数:long:表示的日期长整形值static long类名称:长整形时间类 类描述:组合Calender,封装Calender的数字接口和方法 编 写 人:张显达 编写日期:2002年12月12日20时52分static StringgetTimeStringByLongTime(long longCalendar) 类名称:由长整型时间变为字符 类描述:通过长整数变为时间格式,输入参数为6位的时间 编 写 人:左靖宇 编写日期:2003年3月6日static StringgetTimeStringByLongTime(long longCalendar, boolean formatCn) protected static booleanisLeapYear(int year) static longlongCalender(String strCalender, String strFGF) static voidstatic DatetoDate(long longDate) static DatetoDateTime(long longDate) static StringtoDayOfWeek(long longDate) static longtoLongCalendar(String strCalender, String strFGF) static StringtoString(long canlendar) 把数值转换成带格式的日期,默认为"/"static Stringstatic StringtoTimeLineTime(long longDate) static StringtoTimeLineTime(String strDate) static intwhichDayOfWeek(long longDate) 说明:返回当前日期是本周第几天 作者:时克英 时间:2007-4-23
-
字段详细资料
-
weekDefine
-
-
构造器详细资料
-
LongCalendar
public LongCalendar()
-
-
方法详细资料
-
getLongCalendar
public static long getLongCalendar()返回格式例如:20070728 名称:获得当前长整形日期方法 功能:获得系统中使用长整形表示的日期 输入参数: 返回参数:long:表示的日期长整形值 -
toString
把数值转换成带格式的日期,默认为"/"- 参数:
canlendar-- 返回:
-
toString
-
getLongTime
public static long getLongTime()类名称:长整形时间类 类描述:组合Calender,封装Calender的数字接口和方法 编 写 人:张显达 编写日期:2002年12月12日20时52分 -
getDateStringByLongDatetime
类名称:由长整型时间变为字符 类描述:通过长整数变为时间格式,可以自动适应8位或16位(格式:2002年12月13日10时25分) 编 写 人: 编写日期:2002年12月13日10时25分 -
getDateStringByLongDatetimeForPage
-
getCurrentDate
编写人:刘琨 名称:getCurrentDate 功能:得到系统当前时间 输入参数: 返回参数:String:系统当前时间 -
longCalender
- 参数:
strCalender-strFGF-- 返回:
-
toLongCalendar
- 参数:
strCalender- 日历字符串- 返回:
-
getCurrentDateView
编写人:张显达 名称:getCurrentDateView 功能:得到系统当前时间显示,格式:yyyy/mm/dd主要是为页面显示用 输入参数: 返回参数:String:系统当前时间 -
getCurrentMonth
返回当前年月路径字符串,如:2014/3/- 返回:
-
getCurrentDateView
编写人:张显达 名称:getCurrentDateView 功能:得到系统当前时间显示,格式:yyyy/mm/dd主要是为页面显示用 输入参数:long longCalendar 返回参数:String:系统当前时间 -
addMonth
public static long addMonth(long calendar, int month) 类名称:addMonth 类描述:通过参数日期及要加得月份得到一端时间后得时间 编 写 人: 编写日期:2002年11月16日10时52分 修 改 人: 修改日期: 修改内容: 版本: 目前不是很完善,需要进行修改 -
checkCalendar
public static boolean checkCalendar(long calendar) -
getTimeStringByLongTime
类名称:由长整型时间变为字符 类描述:通过长整数变为时间格式,输入参数为6位的时间 编 写 人:左靖宇 编写日期:2003年3月6日 -
getTimeStringByLongTime
-
getCalendarByMonthAdd
public static long getCalendarByMonthAdd(long longCalendar, int num) 类名称:月份增加 类描述:月份增加 编 写 人:左靖宇 编写日期: -
getCalendarByYearAdd
public static long getCalendarByYearAdd(long longCalendar, int num) 年份增加 编 写 人:彭业建 -
getCurrentDateForpage
类名称:类描述:得到当前日期的格式化显示 编 写 人:彭业建 编写日期: 返回参数 : yyyy年MM月dd日 -
getCalendarAfterDays
类名称:getCalendarAfterDays 类描述:获得当前日期增加N天(可正可负)后的日期 编 写 人:刘国军 编写日期: 返回参数 : yyyy/MM/dd -
getCalendarAfterDays
说明:获得给定日期增加N天(可正可负)后的日期 作者:时克英 时间:2007-4-27 -
toDate
-
toDateTime
-
toTimeLineTime
-
toTimeLineTime
-
toDayOfWeek
-
whichDayOfWeek
public static int whichDayOfWeek(long longDate) 说明:返回当前日期是本周第几天 作者:时克英 时间:2007-4-23 -
getDays
类名称:类描述:计算两个日期相差的天数,begin,end格式yyyMMdd 编 写 人:彭业建 编写日期: -
getDateAfterAddDateNum
public static long getDateAfterAddDateNum(long date, int amount) 类名称:类描述:计算日期加上或减去某个数后的日期 编 写 人:彭业建 编写日期- 参数:
date- 要计算的日期amount- ,加或减的天数- 返回:
- 计算后的日期
-
getFirstDayOfWeek
public static long getFirstDayOfWeek(long _cntDate) 根据输入的日期,返回所在周的第一天日期- 参数:
_cntDate-- 返回:
-
getLastDayOfWeek
public static long getLastDayOfWeek(long _firstDate) 返回本周最后一天- 参数:
_firstDate- :本周第一天- 返回:
-
isLeapYear
protected static boolean isLeapYear(int year) -
getLastDayOfMonth
public static int getLastDayOfMonth(int monthNum, int year) -
main
-