NSDate(TuSDKTSDateExtend) Category Reference
Declared in | TuSDKTSDate+Extend.h |
---|
– lsqComponentsOfDay
获取当天的包括“年”,“月”,“日”,“周”,“时”,“分”,“秒”的NSDateComponents
- (NSDateComponents *)lsqComponentsOfDay
Return Value
当天的包括“年”,“月”,“日”,“周”,“时”,“分”,“秒”的NSDateComponents
Declared In
TuSDKTSDate+Extend.h
– lsqWeekdayOrdinal
获取NSDate对应的月份第几周
- (NSInteger)lsqWeekdayOrdinal
Return Value
NSDate对应的月份第几周
Declared In
TuSDKTSDate+Extend.h
– lsqYear
获得NSDate对应的年份
- (NSUInteger)lsqYear
Return Value
NSDate对应的年份
Declared In
TuSDKTSDate+Extend.h
– lsqMonth
获得NSDate对应的月份
- (NSUInteger)lsqMonth
Return Value
NSDate对应的月份
Declared In
TuSDKTSDate+Extend.h
– lsqDay
获得NSDate对应的日期
- (NSUInteger)lsqDay
Return Value
NSDate对应的日期
Declared In
TuSDKTSDate+Extend.h
– lsqHour
获得NSDate对应的小时数
- (NSUInteger)lsqHour
Return Value
NSDate对应的小时数
Declared In
TuSDKTSDate+Extend.h
– lsqMinute
获得NSDate对应的分钟数
- (NSUInteger)lsqMinute
Return Value
NSDate对应的分钟数
Declared In
TuSDKTSDate+Extend.h
– lsqSecond
获得NSDate对应的秒数
- (NSUInteger)lsqSecond
Return Value
NSDate对应的秒数
Declared In
TuSDKTSDate+Extend.h
– lsqWeekday
获得NSDate对应的星期
- (NSUInteger)lsqWeekday
Return Value
NSDate对应的星期 (Sunday:1, Monday:2, Tuesday:3, Wednesday:4, Thursday:5, Friday:6, Saturday:7)
Declared In
TuSDKTSDate+Extend.h
– lsqWeek
获得NSDate对应的周数
- (NSUInteger)lsqWeek
Return Value
NSDate对应的周数
Declared In
TuSDKTSDate+Extend.h
– lsqBeginingOfDay
获取当天的起始时间(00:00:00)
- (NSDate *)lsqBeginingOfDay
Return Value
当天的起始时间
Declared In
TuSDKTSDate+Extend.h
– lsqEndOfDay
获取当天的结束时间(23:59:59)
- (NSDate *)lsqEndOfDay
Return Value
当天的结束时间
Declared In
TuSDKTSDate+Extend.h
– lsqFirstDayOfTheMonth
获取当月的第一天
- (NSDate *)lsqFirstDayOfTheMonth
Return Value
当月的第一天
Declared In
TuSDKTSDate+Extend.h
– lsqLastDayOfTheMonth
获取当月的最后一天
- (NSDate *)lsqLastDayOfTheMonth
Return Value
当月的最后一天
Declared In
TuSDKTSDate+Extend.h
– lsqFirstDayOfThePreviousMonth
获取前一个月的第一天
- (NSDate *)lsqFirstDayOfThePreviousMonth
Return Value
前一个月的第一天
Declared In
TuSDKTSDate+Extend.h
– lsqFirstDayOfTheFollowingMonth
获取后一个月的第一天
- (NSDate *)lsqFirstDayOfTheFollowingMonth
Return Value
后一个月的第一天
Declared In
TuSDKTSDate+Extend.h
– lsqAssociateDayOfThePreviousMonth
获取前一个月中与当天对应的日期
- (NSDate *)lsqAssociateDayOfThePreviousMonth
Return Value
前一个月中与当天对应的日期
Declared In
TuSDKTSDate+Extend.h
– lsqAssociateDayOfTheFollowingMonth
获取后一个月中与当天对应的日期
- (NSDate *)lsqAssociateDayOfTheFollowingMonth
Return Value
后一个月中与当天对应的日期
Declared In
TuSDKTSDate+Extend.h
– lsqNumberOfDaysInMonth
获取当月的天数
- (NSUInteger)lsqNumberOfDaysInMonth
Return Value
当月的天数
Declared In
TuSDKTSDate+Extend.h
– lsqNumberOfWeeksInMonth
获取当月的周数
- (NSUInteger)lsqNumberOfWeeksInMonth
Return Value
当月的周数
Declared In
TuSDKTSDate+Extend.h
– lsqFirstDayOfTheWeek
获取这一周的第一天
- (NSDate *)lsqFirstDayOfTheWeek
Return Value
这一周的第一天
Declared In
TuSDKTSDate+Extend.h
– lsqFirstDayOfThePreviousWeekInTheMonth
获取当月中,前一周的第一天
- (NSDate *)lsqFirstDayOfThePreviousWeekInTheMonth
Return Value
当月中,前一周的第一天
Declared In
TuSDKTSDate+Extend.h
– lsqFirstDayOfTheLastWeekInPreviousMonth
获取前一个月中,最后一周的第一天
- (NSDate *)lsqFirstDayOfTheLastWeekInPreviousMonth
Return Value
前一个月中,最后一周的第一天
Declared In
TuSDKTSDate+Extend.h
– lsqFirstDayOfTheFollowingWeekInTheMonth
获取当月中,后一周的第一天
- (NSDate *)lsqFirstDayOfTheFollowingWeekInTheMonth
Return Value
当月中,后一周的第一天
Declared In
TuSDKTSDate+Extend.h
– lsqFirstDayOfTheFirstWeekInFollowingMonth
获取下一个月中,最前一周的第一天
- (NSDate *)lsqFirstDayOfTheFirstWeekInFollowingMonth
Return Value
下一个月中,最前一周的第一天
Declared In
TuSDKTSDate+Extend.h
– lsqFirstDayOfTheWeekInTheMonth
获取当月中,这一周的第一天
- (NSDate *)lsqFirstDayOfTheWeekInTheMonth
Return Value
当月中,这一周的第一天
Declared In
TuSDKTSDate+Extend.h
– lsqNumberOfDaysInTheWeekInMonth
获取当月中,这一周的天数
- (NSUInteger)lsqNumberOfDaysInTheWeekInMonth
Return Value
当月中,这一周的天数
Declared In
TuSDKTSDate+Extend.h
– lsqWeekOfDayInMonth
获取当天是当月的第几周
- (NSUInteger)lsqWeekOfDayInMonth
Return Value
当天是当月的第几周
Declared In
TuSDKTSDate+Extend.h
– lsqWeekOfDayInYear
获取当天是当年的第几周
- (NSUInteger)lsqWeekOfDayInYear
Return Value
当天是当年的第几周
Declared In
TuSDKTSDate+Extend.h
– lsqAssociateDayOfThePreviousWeek
获取前一周中与当天对应的日期
- (NSDate *)lsqAssociateDayOfThePreviousWeek
Return Value
前一周中与当天对应的日期
Declared In
TuSDKTSDate+Extend.h
– lsqAssociateDayOfTheFollowingWeek
获取后一周中与当天对应的日期
- (NSDate *)lsqAssociateDayOfTheFollowingWeek
Return Value
后一周中与当天对应的日期
Declared In
TuSDKTSDate+Extend.h
– lsqSameDayWithDate:
判断与某一天是否为同一天
- (BOOL)lsqSameDayWithDate:(NSDate *)otherDate
Parameters
otherDate |
某一天 |
---|
Return Value
与某一天是否为同一天
Declared In
TuSDKTSDate+Extend.h
– lsqSameWeekWithDate:
判断与某一天是否为同一周
- (BOOL)lsqSameWeekWithDate:(NSDate *)otherDate
Parameters
otherDate |
某一天 |
---|
Return Value
与某一天是否为同一周
Declared In
TuSDKTSDate+Extend.h
– lsqSameMonthWithDate:
判断与某一天是否为同一月
- (BOOL)lsqSameMonthWithDate:(NSDate *)otherDate
Parameters
otherDate |
某一天 |
---|
Return Value
与某一天是否为同一月
Declared In
TuSDKTSDate+Extend.h
– lsqDateFormat:
格式化时间
- (NSString *)lsqDateFormat:(NSString *)format
Parameters
format |
格式化字符串 |
---|
Return Value
返回格式化后的时间
Declared In
TuSDKTSDate+Extend.h
– lsqWeekdayName
获取周名称
- (NSString *)lsqWeekdayName
Return Value
周名称 TuSDK.strings=>“las_week_Sun” = “周日”;
Declared In
TuSDKTSDate+Extend.h
+ lsqDateFromRFC1123:
Convert a RFC1123 ‘Full-Date’ string (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1) into NSDate.
+ (NSDate *)lsqDateFromRFC1123:(NSString *)value
Declared In
TuSDKTSDate+Extend.h
– lsqRfc1123String
Convert NSDate into a RFC1123 ‘Full-Date’ string (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1).
- (NSString *)lsqRfc1123String
Declared In
TuSDKTSDate+Extend.h