All Categories
 
GregorianCalendar class roll(int field, int amount)method example

GregorianCalendarclass roll(int field, int amount)method example. This example shows you how to use roll(int field, int amount)method.This method Adds a signed amount to the specified calendar field without changing larger fields.

 
GregorianCalendar class roll(int field, boolean up)method example

GregorianCalendarclass roll(int field, boolean up)method example. This example shows you how to use roll(int field, boolean up)method.This method Adds or subtracts (up/down) a single unit of time on the given time field without changing larger fields.

 
GregorianCalendar class isLeapYear(int year)method example

GregorianCalendarclass isLeapYear(int year)method example. This example shows you how to use isLeapYear(int year) method.This method Determines if the given year is a leap year.

 
GregorianCalendar class hashCode()method example

GregorianCalendarclass hashCode()method example. This example shows you how to use hashCode()method.This method Generates the hash code for this GregorianCalendar object.

 
GregorianCalendar class getTimeZone()method example

GregorianCalendarclass getTimeZone()method example. This example shows you how to use getTimeZone() method.This method Gets the time zone.

 
GregorianCalendar class getMinimum(int field) method example

GregorianCalendarclass getMinimum(int field)method example. This example shows you how to use getMinimum(int field) method.This method Returns the minimum value for the given calendar field of this GregorianCalendar instance.

 
GregorianCalendar class getMaximum(int field) method example

GregorianCalendarclass getMaximum(int field)method example. This example shows you how to use getMaximum(int field)method.This method Returns the maximum value for the given calendar field of this GregorianCalendar instance.

 
GregorianCalendar class getLeastMaximum(int field)method example

GregorianCalendarclass getLeastMaximum(int field) method example. This example shows you how to use getLeastMaximum(int field)method.This method Returns the lowest maximum value for the given calendar field

 
IdentityHashMap isEmpty Example

IdentityHashMap class isEmpty example. public boolean isEmpty() Returns true if this identity hash map contains no key-value mappings.

 
GregorianCalendar classgetGregorianChange()method example

GregorianCalendarclass getGregorianChange()method example. This example shows you how to use getGregorianChange()method.This method Gets the Gregorian Calendar change date.

 
IdentityHashMap hashCode Example

IdentityHashMap class hashCode example. public int hashCode() Returns the hash code value for this map. The hash code of a map is defined to be the sum of the hash codes of each entry in the map's entrySet() view.

 
IdentityHashMap get Example

IdentityHashMap class get example. public Object get(Object) Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

 
GregorianCalendar class getGreatestMinimum(int field) method example

GregorianCalendarclass getGreatestMinimum(int field) method example. This example shows you how to use getGreatestMinimum(int field) method.This method Returns the highest minimum value for the given calendar field of this GregorianCalendar instance.

 
GregorianCalendar class getActualMinimum(int field) method example

GregorianCalendarclass getActualMinimum(int field) method example. This example shows you how to use getActualMinimum(int field) method.This method Returns the minimum value that this calendar field could have

 
Java SimpleTimeZone useDaylightTime() Example

Syntax is : public boolean useDaylightTime()
This method checks if this time zone uses daylight saving time or not and returns boolean true or false.

 
Java SimpleTimeZone toString() Example

Syntax is : Public public String toString()
This method returns a string representation of this time zone.

 
GregorianCalendar class getActualMaximum(int field) method example

GregorianCalendarclass getActualMaximum(int field) method example. This example shows you how to use getActualMaximum(int field) method.This method Returns the maximum value that this calendar field could have, taking into consideration the given time value

 
Java SimpleTimeZone setStartYear() Example

Syntax is : public void setStartYear(int year) This method sets the daylight saving time starting year.

 
GregorianCalendar class equals(Object obj) method example

GregorianCalendarclass equals(Object obj) method example. This example shows you how to use equals(Object obj) method.This method Compares this GregorianCalendar to the specified Object.

 
Java SimpleTimeZone setStartRule() Example

Syntax is : public  void setStartRule(int startMonth, int startDay, int startTime)
This method sets the daylight saving time start rule to a fixed date within a month.

 
Java SimpleTimeZone setStartRule() Example

Syntax is : public void setStartRule(int startMonth, int startDay, int startDayOfWeek, int startTime, boolean after)
This method sets the daylight saving time start rule to a weekday before or after the given date within a month, e.g., the first Monday on or after the 7th.

 
GregorianCalendar class clone() method example

GregorianCalendarclass clone() method example. This example shows you how to use clone() method.This method Creates and returns a copy of this object.

 
Java SimpleTimeZone setStartRule() Example

Syntax is : public  void setStartRule(int startMonth, int startDay, int startDayOfWeek, int startTime)
Method sets the daylight saving time start rule. For example, if daylight saving time starts on the first Tuesday in April at 6 am in local wall clock time, you can set the start rule by calling: setStartRule(Calendar.APRIL, 1, Calendar.TUESDAY, 2*60*60*1000).

 
GregorianCalendar class add(int field, int amount) method example

GregorianCalendarclass add(int field, int amount) method example. This example shows you how to use add(int field, int amount) method.This method Adds the specified (signed) amount of time to the given calendar field, based on the calendar's rules.

 
Java SimpleTimeZone setRawOffset() Example

Syntax is : public 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 SimpleTimeZone setEndRule() Example

Syntax is : public void setEndRule(int endMonth, int endDay, int endTime)
Method sets the daylight saving time end rule to a fixed date within a month. This method is equivalent to:setEndRule(endMonth, endDay, 0, endTime)

 
Java SimpleTimeZone setEndRule() Example

Syntax is : public void setEndRule(int endMonth, int endDay, int endDayOfWeek, int endTime, boolean after)
Methos sets the daylight saving time end rule to a weekday before or after the given date within a month, e.g., the first Tuesday on or after the 12th.

 
Java SimpleTimeZone setEndRule() Example

Syntax is : public void setEndRule(int endMonth, int endDay, int endDayOfWeek, int endTime)
method sets the daylight saving time end rule. For example, if daylight saving time ends on the last Monday in Jnauary at 2 am in wall clock time, you can set the end rule by calling: setEndRule(Calendar.JANUARY, -1, Calendar.MONDAY, 2*60*60*1000).

 
Java SimpleTimeZone setDSTSavings() Example

Syntax is : public void setDSTSavings(int millisSavedDuringDST)
This method ets the amount of time in milliseconds that the clock is advanced during daylight saving time.

 
Java SimpleTimeZone inDaylightTime() Example

Syntax is : public boolean inDaylightTime(Date date)
Method checks if the given date is in daylight saving time or not and returns boolean true or false.

 
 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