All Categories
 
Java TimeZone useDaylightTime() Example

Syntax is : public abstract boolean useDaylightTime()
This method queries that this time zone uses daylight savings time or not and returns boolean true or false.

 
Java TimeZone setRawOffset() Example

Syntax is : public abstract void setRawOffset(int offsetMillis)
Method sets the base time zone offset to GMT. This is the offset to add to UTC to get local time.

 
Java TimeZone setID() Example

Syntax is : public void setID(String ID)
Method sets the time zone ID. This does not change any other data in the time zone object.

 
PriorityQueue class contains(Object o)method example

PriorityQueue class contains(Object o)method example. This example shows you how to use contains(Object o)method.This method Returns true if this queue contains the specified element.

 
Java TimeZone setDefault() Example

Syntax is : public static void setDefault(TimeZone zone)
Method sets the TimeZone that is returned by the getDefault method. If zone is null, reset the default to the value it had originally when the VM first started.

 
PriorityQueue class clear()method example

PriorityQueue class clear()method example. This example shows you how to use clear()method.This method Removes all of the elements from this priority queue.

 
Java TimeZone inDaylightTime() Example

Syntax is : public abstract boolean inDaylightTime(Date date)
This method check the given date is in daylight savings time in this time zone or not.

 
Java TimeZone hasSameRules() Example

Syntax is : public boolean hasSameRules(TimeZone other)
Method returns true if this zone has the same rule and offset as another zone. That is, if this zone differs only in ID, if at all. Returns false if the other zone is null.

 
PriorityQueue class add(E e)method example

PriorityQueueclass add(E e)method example. This example shows you how to use add(E e)method.This method Inserts the specified element into this priority queue.

 
Java TimeZone getTimeZone() Example

Syntax is : public static TimeZone getTimeZone(String ID)
This method returns the TimeZone for the given ID.

 
Java TimeZone getRawOffset() Example

Syntax is : public abstract int getRawOffset()
Method returns the amount of time in milliseconds to add to UTC to get standard time in this time zone. Because this value is not affected by daylight saving time, it is called raw offset.

 
Java TimeZone getOffset() Example

Syntax is : public int getOffset(long date)
Method returns the offset of this time zone from UTC at the specified date. If Daylight Saving Time is in effect at the specified date, the offset value is adjusted with the amount of daylight saving.

 
Java TimeZone getID() Example

Syntax is : public String getID()
Method returns the ID of this time zone.

 
Java TimeZone getDSTSavings() Example

Syntax is : public int getDSTSavings()
Method returns the amount of time to be added to local standard time to get local wall clock time. The default implementation always returns 3600000 milliseconds (i.e., one hour) if this time zone observes Daylight Saving Time. Otherwise, 0 (zero) is returned.

 
Java TimeZone getDisplayName() Example

Syntax is : public final String getDisplayName()
Method returns a name of this time zone suitable for presentation to the user in the default locale. This method returns the long name, not including daylight savings. If the display name is not available for the locale, then this method returns a string in the normalized custom ID format.

 
Java TimeZone getDisplayName() Example

Syntax is : public final String getDisplayName(boolean daylight, int style)
Method returns a name of this time zone suitable for presentation to the user in the default locale. If the display name is not available for the locale, then this method returns a string in the normalized custom ID format.

 
Java TimeZone getDisplayName() Example

Syntax is : public final String getDisplayName(Locale locale)
Method returns a name of this time zone suitable for presentation to the user in the specified locale. This method returns the long name, not including daylight savings. If the display name is not available for the locale, then this method returns a string in the normalized custom ID format.

 
Java TimeZone getDisplayName() Example

Syntax is : public String getDisplayName(boolean daylight, int style, Locale locale)
Method returns a name of this time zone suitable for presentation to the user in the specified locale. If the display name is not available for the locale, then this method returns a string in the normalized custom ID format.

 
Java TimeZone getDefault() Example

Syntax is : public static TimeZone getDefault()
This method returns the default TimeZone for this host. The source of the default TimeZone may vary with implementation.

 
Java TimeZone getAvailableIDs() Example

Syntax is : public static String[] getAvailableIDs()
This method returns all the available IDs supported.

 
Java TimeZone getAvailableIDs() Example

Syntax is : public static String[] getAvailableIDs(int rawOffset)
This method returns available IDs according to the given time zone offset in milliseconds.

 
Java TimeZone clone() Example

Syntax is : public Object clone()
This method creates a copy of specified TimeZone.

 
IdentityHashMap values Example

IdentityHashMap class values example. public Collection values() Returns a Collection view of the values contained in this map. The collection is backed by the map, so changes to the map are reflected in the collection, and vice-versa.

 
IdentityHashMap size Example

IdentityHashMap class size example.public int size() Returns the number of key-value mappings in this identity hash map.

 
IdentityHashMap remove Example

IdentityHashMap class remove example. public Map remove(Object) Removes the mapping for this key from this map if present.

 
IdentityHashMap putAll Example

IdentityHashMap class putAll example. public void putAll(Map) Copies all of the mappings from the specified map to this map. These mappings will replace any mappings that this map had for any of the keys currently in the specified map.

 
IdentityHashMap put Example

IdentityHashMap class put example. public Object put(Object,Object) Associates the specified value with the specified key in this identity hash map. If the map previously contained a mapping for the key, the old value is replaced.

 
GregorianCalendar class setTimeZone(TimeZone zone) method example

GregorianCalendarclass setTimeZone(TimeZone zone) method example. This example shows you how to use setTimeZone(TimeZone zone) method.This method Sets the time zone with the given time zone value.

 
IdentityHashMap keySet Example

IdentityHashMap class keySet example. public Set keySet() Returns an identity-based set view of the keys contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa.

 
GregorianCalendar class setGregorianChange(Date date)method example

GregorianCalendarclass setGregorianChange(Date date)method example. This example shows you how to use setGregorianChange(Date date)method.This method Sets the GregorianCalendar change date.

 
 1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    27    28    29    30    31    32    33    34    35    36   [37]    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122    123    124    125    126    127    128    129    130    131    132    133    134    135    136    137    138    139    140    141    142    143    144    145    146    147    148    149    150    151    152    153    154    155    156    157    158    159    160    161    162    163    164    165    166    167    168    169    170    171    172    173    174    175    176    177    178    179    180    181    182    183    184    185    186    187    188    189    190    191    192    193    194    195    196    197    198    199    200    201    202    203    204    205    206    207    208    209    210    211    212    213    214    215    216    217    218    219    220    221    222    223    224    225    226    227    228    229    230    231    232    233    234    235    236    237    238    239    240    241    242    243    244    245    246    247    248    249    250    251    252    253    254    255    256    257    258    259    260    261    262    263    264    265    266    267    268    269    270    271    272    273    274    275    276    277    278    279    280    281    282    283    284    285    286    287    288    289    290    291    292    293    294    295    296    297    298    299    300    301    302    303    304    305    306    307    308    309    310    311    312    313    314    315    316    317    318    319    320    321    322    323    324    325    326    327    328    329    330    331    332    333    334    335    336    337    338    339    340    341    342    343    344    345    346    347    348    349    350    351    352    353    354    355    356    357    358    359    360    361    362    363    364    365    366    367    368    369    370    371    372    373    374    375    376    377    378    379    380    381    382    383    384    385    386    387    388    389    390    391    392    393    394    395    396    397    398    399    400    401    402    403    404    405    406    407    408    409    410    411    412    413    414    415    416    417    418    419    420    421    422    423    424    425    426    427    428    429    430    431    432    433    434    435    436    437    438    439    440  
 
 
 
 
 

HOME | COPYRIGHT | CONTACT US