Package org.robovm.apple.foundation
Class NSDateIntervalFormatter
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSFormatter
-
- org.robovm.apple.foundation.NSDateIntervalFormatter
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NSDateIntervalFormatter extends NSFormatter
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSDateIntervalFormatter.NSDateIntervalFormatterPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSFormatter
NSFormatter.NSFormatterPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSDateIntervalFormatter()
protected
NSDateIntervalFormatter(NSObject.Handle h, long handle)
protected
NSDateIntervalFormatter(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(NSDateInterval dateInterval)
java.lang.String
format(NSDate fromDate, NSDate toDate)
NSCalendar
getCalendar()
NSDateIntervalFormatterStyle
getDateStyle()
java.lang.String
getDateTemplate()
NSLocale
getLocale()
NSDateIntervalFormatterStyle
getTimeStyle()
NSTimeZone
getTimeZone()
void
setCalendar(NSCalendar v)
void
setDateStyle(NSDateIntervalFormatterStyle v)
void
setDateTemplate(java.lang.String v)
void
setLocale(NSLocale v)
void
setTimeStyle(NSDateIntervalFormatterStyle v)
void
setTimeZone(NSTimeZone v)
-
Methods inherited from class org.robovm.apple.foundation.NSFormatter
encode, init
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSDateIntervalFormatter
public NSDateIntervalFormatter()
-
NSDateIntervalFormatter
protected NSDateIntervalFormatter(NSObject.Handle h, long handle)
-
NSDateIntervalFormatter
protected NSDateIntervalFormatter(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getLocale
public NSLocale getLocale()
-
setLocale
public void setLocale(NSLocale v)
-
getCalendar
public NSCalendar getCalendar()
-
setCalendar
public void setCalendar(NSCalendar v)
-
getTimeZone
public NSTimeZone getTimeZone()
-
setTimeZone
public void setTimeZone(NSTimeZone v)
-
getDateTemplate
public java.lang.String getDateTemplate()
-
setDateTemplate
public void setDateTemplate(java.lang.String v)
-
getDateStyle
public NSDateIntervalFormatterStyle getDateStyle()
-
setDateStyle
public void setDateStyle(NSDateIntervalFormatterStyle v)
-
getTimeStyle
public NSDateIntervalFormatterStyle getTimeStyle()
-
setTimeStyle
public void setTimeStyle(NSDateIntervalFormatterStyle v)
-
format
public java.lang.String format(NSDateInterval dateInterval)
- Since:
- Available in iOS 10.0 and later.
-
-