Package org.robovm.apple.foundation
Class NSTimeZone
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSTimeZone
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class NSTimeZone extends NSObject implements NSSecureCoding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSTimeZone.Notifications
static class
NSTimeZone.NSTimeZonePtr
-
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 NSTimeZone()
NSTimeZone(java.lang.String tzName)
NSTimeZone(java.lang.String tzName, NSData aData)
NSTimeZone(NSCoder decoder)
protected
NSTimeZone(NSObject.Handle h, long handle)
protected
NSTimeZone(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NSString
DidChangeNotification()
void
encode(NSCoder coder)
boolean
equalsTo(NSTimeZone aTimeZone)
static NSTimeZone
fromAbbreviation(java.lang.String abbreviation)
static NSTimeZone
fromGMTSecondsOffset(long seconds)
static NSTimeZone
fromName(java.lang.String tzName)
static NSTimeZone
fromName(java.lang.String tzName, NSData aData)
java.lang.String
getAbbreviation()
static java.util.Map<java.lang.String,java.lang.String>
getAbbreviationDictionary()
java.lang.String
getAbbreviationForDate(NSDate aDate)
NSData
getData()
double
getDaylightSavingTimeOffset()
double
getDaylightSavingTimeOffsetForDate(NSDate aDate)
static NSTimeZone
getDefaultTimeZone()
static java.util.List<java.lang.String>
getKnownTimeZoneNames()
java.lang.String
getLocalizedName(NSTimeZoneNameStyle style, NSLocale locale)
static NSTimeZone
getLocalTimeZone()
java.lang.String
getName()
NSDate
getNextDaylightSavingTimeTransition()
NSDate
getNextDaylightSavingTimeTransitionAfterDate(NSDate aDate)
long
getSecondsFromGMT()
long
getSecondsFromGMTForDate(NSDate aDate)
static NSTimeZone
getSystemTimeZone()
static java.lang.String
getTimeZoneDataVersion()
protected long
init(java.lang.String tzName)
protected long
init(java.lang.String tzName, NSData aData)
protected long
init(NSCoder decoder)
boolean
isDaylightSavingTime()
boolean
isDaylightSavingTimeForDate(NSDate aDate)
static void
resetSystemTimeZone()
static void
setAbbreviationDictionary(java.util.Map<java.lang.String,java.lang.String> v)
static void
setDefaultTimeZone(NSTimeZone v)
static boolean
supportsSecureCoding()
-
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
-
NSTimeZone
public NSTimeZone()
-
NSTimeZone
protected NSTimeZone(NSObject.Handle h, long handle)
-
NSTimeZone
protected NSTimeZone(NSObject.SkipInit skipInit)
-
NSTimeZone
public NSTimeZone(java.lang.String tzName)
-
NSTimeZone
public NSTimeZone(java.lang.String tzName, NSData aData)
-
NSTimeZone
public NSTimeZone(NSCoder decoder)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getData
public NSData getData()
-
getSystemTimeZone
public static NSTimeZone getSystemTimeZone()
-
getDefaultTimeZone
public static NSTimeZone getDefaultTimeZone()
-
setDefaultTimeZone
public static void setDefaultTimeZone(NSTimeZone v)
-
getLocalTimeZone
public static NSTimeZone getLocalTimeZone()
-
getKnownTimeZoneNames
public static java.util.List<java.lang.String> getKnownTimeZoneNames()
-
getAbbreviationDictionary
public static java.util.Map<java.lang.String,java.lang.String> getAbbreviationDictionary()
- Since:
- Available in iOS 4.0 and later.
-
setAbbreviationDictionary
public static void setAbbreviationDictionary(java.util.Map<java.lang.String,java.lang.String> v)
- Since:
- Available in iOS 4.0 and later.
-
getTimeZoneDataVersion
public static java.lang.String getTimeZoneDataVersion()
- Since:
- Available in iOS 4.0 and later.
-
getSecondsFromGMT
public long getSecondsFromGMT()
-
getAbbreviation
public java.lang.String getAbbreviation()
-
isDaylightSavingTime
public boolean isDaylightSavingTime()
-
getDaylightSavingTimeOffset
public double getDaylightSavingTimeOffset()
- Since:
- Available in iOS 2.0 and later.
-
getNextDaylightSavingTimeTransition
public NSDate getNextDaylightSavingTimeTransition()
- Since:
- Available in iOS 2.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
DidChangeNotification
public static NSString DidChangeNotification()
- Since:
- Available in iOS 2.0 and later.
-
getSecondsFromGMTForDate
public long getSecondsFromGMTForDate(NSDate aDate)
-
getAbbreviationForDate
public java.lang.String getAbbreviationForDate(NSDate aDate)
-
isDaylightSavingTimeForDate
public boolean isDaylightSavingTimeForDate(NSDate aDate)
-
getDaylightSavingTimeOffsetForDate
public double getDaylightSavingTimeOffsetForDate(NSDate aDate)
- Since:
- Available in iOS 2.0 and later.
-
getNextDaylightSavingTimeTransitionAfterDate
public NSDate getNextDaylightSavingTimeTransitionAfterDate(NSDate aDate)
- Since:
- Available in iOS 2.0 and later.
-
equalsTo
public boolean equalsTo(NSTimeZone aTimeZone)
-
getLocalizedName
public java.lang.String getLocalizedName(NSTimeZoneNameStyle style, NSLocale locale)
- Since:
- Available in iOS 2.0 and later.
-
resetSystemTimeZone
public static void resetSystemTimeZone()
-
init
protected long init(java.lang.String tzName)
-
init
protected long init(java.lang.String tzName, NSData aData)
-
fromName
public static NSTimeZone fromName(java.lang.String tzName)
-
fromName
public static NSTimeZone fromName(java.lang.String tzName, NSData aData)
-
fromGMTSecondsOffset
public static NSTimeZone fromGMTSecondsOffset(long seconds)
-
fromAbbreviation
public static NSTimeZone fromAbbreviation(java.lang.String abbreviation)
-
init
protected long init(NSCoder decoder)
-
-