Package org.robovm.apple.corefoundation
Class CFDateFormatter
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.corefoundation.CFDateFormatter
- All Implemented Interfaces:
AutoCloseable
public class CFDateFormatter extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCFDateFormatter.CFDateFormatterPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedCFDateFormatter() -
Method Summary
Modifier and Type Method Description static CFDateFormattercreate(CFAllocator allocator, CFLocale locale, CFDateFormatterStyle dateStyle, CFDateFormatterStyle timeStyle)static CFDateFormattercreate(CFLocale locale, CFDateFormatterStyle dateStyle, CFDateFormatterStyle timeStyle)static CFDateFormattercreateISO8601Formatter(CFAllocator allocator, CFISO8601DateFormatOptions formatOptions)Stringformat(double at)Stringformat(CFDate date)doublegetAbsoluteTime(String string, CFRange rangep)static longgetClassTypeID()static StringgetDateFormat(String tmplate, long options, CFLocale locale)CFDateFormatterStylegetDateStyle()StringgetFormat()CFLocalegetLocale()CFTypegetProperty(CFDateFormatterProperty key)CFDateFormatterStylegetTimeStyle()CFDateparse(String string, CFRange rangep)voidsetFormat(String formatString)voidsetProperty(CFDateFormatterProperty key, CFType value)Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
Constructor Details
-
CFDateFormatter
protected CFDateFormatter()
-
-
Method Details
-
getDateFormat
- Since:
- Available in iOS 4.0 and later.
-
create
public static CFDateFormatter create(CFLocale locale, CFDateFormatterStyle dateStyle, CFDateFormatterStyle timeStyle) -
format
-
format
-
parse
-
getAbsoluteTime
-
getClassTypeID
public static long getClassTypeID() -
createISO8601Formatter
public static CFDateFormatter createISO8601Formatter(CFAllocator allocator, CFISO8601DateFormatOptions formatOptions)- Since:
- Available in iOS 10.0 and later.
-
create
public static CFDateFormatter create(CFAllocator allocator, CFLocale locale, CFDateFormatterStyle dateStyle, CFDateFormatterStyle timeStyle) -
getLocale
-
getDateStyle
-
getTimeStyle
-
getFormat
-
setFormat
-
setProperty
-
getProperty
-