Results 1 to 6 of 6
Thread: getYear deprecated method
- 01-28-2008, 09:56 AM #1
Senior Member
- Join Date
- Nov 2007
- Posts
- 115
- Rep Power
- 0
- 01-28-2008, 11:35 AM #2Java Code:
System.out.println(Calendar.getInstance().get(Calendar.YEAR));
Please refer to the Date Java doc, how they have justified the depreciation.dont worry newbie, we got you covered.
- 01-05-2011, 08:37 AM #3
Member
- Join Date
- Jan 2011
- Posts
- 2
- Rep Power
- 0
If you look in the doc for getYear() it returns a value that is the result of subtracting 1900 from the year that contains or begins with the instant in time represented by this Date object, as interpreted in the local time zone.
2008-1900 = 108
Don't ask me who ever got this idea...Last edited by Vering; 01-05-2011 at 09:02 AM.
- 01-05-2011, 09:22 AM #4
- 01-05-2011, 09:46 AM #5
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 11
This thread is almost 2yrs old.
- 01-05-2011, 09:50 AM #6
Member
- Join Date
- Jan 2011
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
method not abstract, does not override actionperformed method.
By Theman in forum New To JavaReplies: 2Last Post: 03-26-2010, 06:12 PM -
Method Help
By pringle in forum New To JavaReplies: 4Last Post: 04-16-2008, 02:23 PM -
I need help with a deprecated program
By mikau in forum New To JavaReplies: 0Last Post: 02-13-2008, 10:34 AM -
Using Deprecated Methods
By ravian in forum New To JavaReplies: 3Last Post: 11-23-2007, 08:58 PM -
method size is deprecated
By oregon in forum New To JavaReplies: 4Last Post: 08-05-2007, 06:59 PM
Bookmarks