mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Consistent header for NSDateIntervalFormatter.h
This commit is contained in:
parent
97f817167c
commit
629a3c2d5c
4 changed files with 50 additions and 2 deletions
|
@ -56,6 +56,7 @@
|
|||
#import <Foundation/NSData.h>
|
||||
#import <Foundation/NSDateFormatter.h>
|
||||
#import <Foundation/NSDateInterval.h>
|
||||
#import <Foundation/NSDateIntervalFormatter.h>
|
||||
#import <Foundation/NSDate.h>
|
||||
#import <Foundation/NSDecimalNumber.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
|
@ -92,6 +93,8 @@
|
|||
#import <Foundation/NSLock.h>
|
||||
#import <Foundation/NSLocale.h>
|
||||
#import <Foundation/NSMapTable.h>
|
||||
#import <Foundation/NSMeasurement.h>
|
||||
#import <Foundation/NSMeasurementFormatter.h>
|
||||
#import <Foundation/NSMetadata.h>
|
||||
#import <Foundation/NSMethodSignature.h>
|
||||
#import <Foundation/NSNotification.h>
|
||||
|
|
|
@ -32,9 +32,52 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_10, GS_API_LATEST)
|
||||
|
||||
enum {
|
||||
NSDateIntervalFormatterNoStyle = 0,
|
||||
NSDateIntervalFormatterShortStyle = 1,
|
||||
NSDateIntervalFormatterMediumStyle = 2,
|
||||
NSDateIntervalFormatterLongStyle = 3,
|
||||
NSDateIntervalFormatterFullStyle = 4
|
||||
};
|
||||
typedef NSUInteger NSDateIntervalFormatterStyle;
|
||||
|
||||
@class NSCalendar, NSLocale, NSDateInterval;
|
||||
|
||||
@interface NSDateIntervalFormatter : NSFormatter
|
||||
{
|
||||
NSLocale *_locale;
|
||||
NSCalendar *_calendar;
|
||||
NSTimeZone *_timeZone;
|
||||
NSString *_dateTemplate;
|
||||
NSDateIntervalFormatterStyle _dateStyle;
|
||||
NSDateIntervalFormatterStyle _timeStyle;
|
||||
}
|
||||
|
||||
// Properties
|
||||
- (NSLocale *) locale;
|
||||
- (void) setLocale: (NSLocale *)locale;
|
||||
|
||||
- (NSCalendar *) calendar;
|
||||
- (void) setCalendar: (NSCalendar *)calendar;
|
||||
|
||||
- (NSTimeZone *) timeZone;
|
||||
- (void) setTimeZone: (NSTimeZone *)timeZone;
|
||||
|
||||
- (NSString *) dateTemplate;
|
||||
- (void) setDateTemplate: (NSString *)dateTemplate;
|
||||
|
||||
- (NSDateIntervalFormatterStyle) dateStyle;
|
||||
- (void) setDateStyle: (NSDateIntervalFormatterStyle)dateStyle;
|
||||
|
||||
- (NSDateIntervalFormatterStyle) timeStyle;
|
||||
- (void) setTimeStyle: (NSDateIntervalFormatterStyle)timeStyle;
|
||||
|
||||
// Create strings
|
||||
- (NSString *)stringFromDate:(NSDate *)fromDate toDate:(NSDate *)toDate;
|
||||
|
||||
- (NSString *)stringFromDateInterval:(NSDateInterval *)dateInterval;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -214,6 +214,7 @@ NSData.m \
|
|||
NSDate.m \
|
||||
NSDateFormatter.m \
|
||||
NSDateInterval.m \
|
||||
NSDateIntervalFormatter.m \
|
||||
NSDebug.m \
|
||||
NSDecimal.m \
|
||||
NSDecimalNumber.m \
|
||||
|
@ -409,6 +410,7 @@ NSConnection.h \
|
|||
NSData.h \
|
||||
NSDateFormatter.h \
|
||||
NSDateInterval.h \
|
||||
NSDateIntervalFormatter.h \
|
||||
NSDate.h \
|
||||
NSDebug.h \
|
||||
NSDecimal.h \
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/* Implementation of class NSDateIntervalFormatter
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
|
||||
By: heron
|
||||
By: Gregory John Casamento <greg.casamento@gmail.com>
|
||||
Date: Wed Oct 9 16:23:55 EDT 2019
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
|
Loading…
Reference in a new issue