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:
java.lang.AutoCloseable
public class CFDateFormatter extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFDateFormatter.CFDateFormatterPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CFDateFormatter()
-
Method Summary
-
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
-
-
-
-
Method Detail
-
getDateFormat
public static java.lang.String getDateFormat(java.lang.String tmplate, long options, CFLocale locale)
- Since:
- Available in iOS 4.0 and later.
-
create
public static CFDateFormatter create(CFLocale locale, CFDateFormatterStyle dateStyle, CFDateFormatterStyle timeStyle)
-
format
public java.lang.String format(CFDate date)
-
format
public java.lang.String format(double at)
-
getAbsoluteTime
public double getAbsoluteTime(java.lang.String string, CFRange rangep)
-
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
public CFLocale getLocale()
-
getDateStyle
public CFDateFormatterStyle getDateStyle()
-
getTimeStyle
public CFDateFormatterStyle getTimeStyle()
-
getFormat
public java.lang.String getFormat()
-
setFormat
public void setFormat(java.lang.String formatString)
-
setProperty
public void setProperty(CFDateFormatterProperty key, CFType value)
-
getProperty
public CFType getProperty(CFDateFormatterProperty key)
-
-