类 LongCalendar

java.lang.Object
com.walker.infrastructure.utils.LongCalendar

public class LongCalendar extends Object
类名称:长整形日期类 类描述:组合Calender,封装Calender的数字接口和方法 编 写 人: 编写日期:2002年11月16日10时52分 修 改 人:祝捷 修改日期:2002年11月29日20时50分 修改内容:由于取得的月份是从00月到11月,所以在取得的当前月份再加一 才是实际的月份 修 改 人:祝捷 修改日期:2002年12月14日16时50分 修改内容:在函数getLongTime中把时间转换为24小时制,
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final String[]
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static long
    addMonth(long calendar, int month)
    类名称:addMonth 类描述:通过参数日期及要加得月份得到一端时间后得时间 编 写 人: 编写日期:2002年11月16日10时52分 修 改 人: 修改日期: 修改内容: 版本: 目前不是很完善,需要进行修改
    static boolean
    checkCalendar(long calendar)
     
    static String
    getCalendarAfterDays(int daysNumber)
    类名称:getCalendarAfterDays 类描述:获得当前日期增加N天(可正可负)后的日期 编 写 人:刘国军 编写日期: 返回参数 : yyyy/MM/dd
    static String
    getCalendarAfterDays(long longDate, int daysNumber)
    说明:获得给定日期增加N天(可正可负)后的日期 作者:时克英 时间:2007-4-27
    static long
    getCalendarByMonthAdd(long longCalendar, int num)
    类名称:月份增加 类描述:月份增加 编 写 人:左靖宇 编写日期:
    static long
    getCalendarByYearAdd(long longCalendar, int num)
    年份增加 编 写 人:彭业建
    static String
    编写人:刘琨 名称:getCurrentDate 功能:得到系统当前时间 输入参数: 返回参数:String:系统当前时间
    static String
    类名称:类描述:得到当前日期的格式化显示 编 写 人:彭业建 编写日期: 返回参数 : yyyy年MM月dd日
    static String
    编写人:张显达 名称:getCurrentDateView 功能:得到系统当前时间显示,格式:yyyy/mm/dd主要是为页面显示用 输入参数: 返回参数:String:系统当前时间
    static String
    getCurrentDateView(long longCalendar)
    编写人:张显达 名称:getCurrentDateView 功能:得到系统当前时间显示,格式:yyyy/mm/dd主要是为页面显示用 输入参数:long longCalendar 返回参数:String:系统当前时间
    static final String
    返回当前年月路径字符串,如:2014/3/
    static long
    getDateAfterAddDateNum(long date, int amount)
    类名称:类描述:计算日期加上或减去某个数后的日期 编 写 人:彭业建 编写日期
    static String
    getDateStringByLongDatetime(long longCalendar)
    类名称:由长整型时间变为字符 类描述:通过长整数变为时间格式,可以自动适应8位或16位(格式:2002年12月13日10时25分) 编 写 人: 编写日期:2002年12月13日10时25分
    static String
     
    static long
    getDays(String begin, String end)
    类名称:类描述:计算两个日期相差的天数,begin,end格式yyyMMdd 编 写 人:彭业建 编写日期:
    static long
    getFirstDayOfWeek(long _cntDate)
    根据输入的日期,返回所在周的第一天日期
    static int
    getLastDayOfMonth(int monthNum, int year)
     
    static long
    getLastDayOfWeek(long _firstDate)
    返回本周最后一天
    static long
    返回格式例如:20070728 名称:获得当前长整形日期方法 功能:获得系统中使用长整形表示的日期 输入参数: 返回参数:long:表示的日期长整形值
    static long
    类名称:长整形时间类 类描述:组合Calender,封装Calender的数字接口和方法 编 写 人:张显达 编写日期:2002年12月12日20时52分
    static String
    getTimeStringByLongTime(long longCalendar)
    类名称:由长整型时间变为字符 类描述:通过长整数变为时间格式,输入参数为6位的时间 编 写 人:左靖宇 编写日期:2003年3月6日
    static String
    getTimeStringByLongTime(long longCalendar, boolean formatCn)
     
    protected static boolean
    isLeapYear(int year)
     
    static long
    longCalender(String strCalender, String strFGF)
     
    static void
    main(String[] args)
     
    static Date
    toDate(long longDate)
     
    static Date
    toDateTime(long longDate)
     
    static String
    toDayOfWeek(long longDate)
     
    static long
    toLongCalendar(String strCalender, String strFGF)
     
    static String
    toString(long canlendar)
    把数值转换成带格式的日期,默认为"/"
    static String
    toString(long canlendar, String separator)
     
    static String
    toTimeLineTime(long longDate)
     
    static String
     
    static int
    whichDayOfWeek(long longDate)
    说明:返回当前日期是本周第几天 作者:时克英 时间:2007-4-23

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • weekDefine

      public static final String[] weekDefine
  • 构造器详细资料

    • LongCalendar

      public LongCalendar()
  • 方法详细资料

    • getLongCalendar

      public static long getLongCalendar()
      返回格式例如:20070728 名称:获得当前长整形日期方法 功能:获得系统中使用长整形表示的日期 输入参数: 返回参数:long:表示的日期长整形值
    • toString

      public static String toString(long canlendar)
      把数值转换成带格式的日期,默认为"/"
      参数:
      canlendar -
      返回:
    • toString

      public static String toString(long canlendar, String separator)
    • getLongTime

      public static long getLongTime()
      类名称:长整形时间类 类描述:组合Calender,封装Calender的数字接口和方法 编 写 人:张显达 编写日期:2002年12月12日20时52分
    • getDateStringByLongDatetime

      public static String getDateStringByLongDatetime(long longCalendar)
      类名称:由长整型时间变为字符 类描述:通过长整数变为时间格式,可以自动适应8位或16位(格式:2002年12月13日10时25分) 编 写 人: 编写日期:2002年12月13日10时25分
    • getDateStringByLongDatetimeForPage

      public static String getDateStringByLongDatetimeForPage(long longCalendar)
    • getCurrentDate

      public static String getCurrentDate()
      编写人:刘琨 名称:getCurrentDate 功能:得到系统当前时间 输入参数: 返回参数:String:系统当前时间
    • longCalender

      public static long longCalender(String strCalender, String strFGF)
      参数:
      strCalender -
      strFGF -
      返回:
    • toLongCalendar

      public static long toLongCalendar(String strCalender, String strFGF)
      参数:
      strCalender - 日历字符串
      返回:
    • getCurrentDateView

      public static String getCurrentDateView()
      编写人:张显达 名称:getCurrentDateView 功能:得到系统当前时间显示,格式:yyyy/mm/dd主要是为页面显示用 输入参数: 返回参数:String:系统当前时间
    • getCurrentMonth

      public static final String getCurrentMonth()
      返回当前年月路径字符串,如:2014/3/
      返回:
    • getCurrentDateView

      public static String getCurrentDateView(long longCalendar)
      编写人:张显达 名称: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

      public static String getTimeStringByLongTime(long longCalendar)
      类名称:由长整型时间变为字符 类描述:通过长整数变为时间格式,输入参数为6位的时间 编 写 人:左靖宇 编写日期:2003年3月6日
    • getTimeStringByLongTime

      public static String getTimeStringByLongTime(long longCalendar, boolean formatCn)
    • getCalendarByMonthAdd

      public static long getCalendarByMonthAdd(long longCalendar, int num)
      类名称:月份增加 类描述:月份增加 编 写 人:左靖宇 编写日期:
    • getCalendarByYearAdd

      public static long getCalendarByYearAdd(long longCalendar, int num)
      年份增加 编 写 人:彭业建
    • getCurrentDateForpage

      public static String getCurrentDateForpage()
      类名称:类描述:得到当前日期的格式化显示 编 写 人:彭业建 编写日期: 返回参数 : yyyy年MM月dd日
    • getCalendarAfterDays

      public static String getCalendarAfterDays(int daysNumber)
      类名称:getCalendarAfterDays 类描述:获得当前日期增加N天(可正可负)后的日期 编 写 人:刘国军 编写日期: 返回参数 : yyyy/MM/dd
    • getCalendarAfterDays

      public static String getCalendarAfterDays(long longDate, int daysNumber)
      说明:获得给定日期增加N天(可正可负)后的日期 作者:时克英 时间:2007-4-27
    • toDate

      public static Date toDate(long longDate)
    • toDateTime

      public static Date toDateTime(long longDate)
    • toTimeLineTime

      public static String toTimeLineTime(long longDate)
    • toTimeLineTime

      public static String toTimeLineTime(String strDate)
    • toDayOfWeek

      public static String toDayOfWeek(long longDate)
    • whichDayOfWeek

      public static int whichDayOfWeek(long longDate)
      说明:返回当前日期是本周第几天 作者:时克英 时间:2007-4-23
    • getDays

      public static long getDays(String begin, String end)
      类名称:类描述:计算两个日期相差的天数,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

      public static void main(String[] args)