Re: [android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Mark Murphy
On Fri, Mar 18, 2011 at 5:41 PM, String wrote: > You quite likely should be using the Calendar class instead, if you want > human-readable time. Date is quite limited, and most importantly, isn't time > zone aware. Calendar is. Yeah, I was having total brain lockup on this one this morning. Aga

[android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread String
You quite likely should be using the Calendar class instead, if you want human-readable time. Date is quite limited, and most importantly, isn't time zone aware. Calendar is. String -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To pos

[android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Andrea Richiardi
Thanks, seriously. I'll search on some Samsung forum whether it's a phone problem. On 18 Mar, 16:36, Mark Murphy wrote: > On Fri, Mar 18, 2011 at 11:34 AM, Andrea Richiardi > > wrote: > > You wouldn't believe it, but it returns 4. > > > Could my phone be bugged (I5500 Samsung) ? > > Beats me. H

Re: [android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Mark Murphy
On Fri, Mar 18, 2011 at 11:34 AM, Andrea Richiardi wrote: > You wouldn't believe it, but it returns 4. > > Could my phone be bugged (I5500 Samsung) ? Beats me. HOUR_OF_DAY definitely is supposed to return a 24-hour value. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com

[android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Andrea Richiardi
You wouldn't believe it, but it returns 4. Could my phone be bugged (I5500 Samsung) ? On 18 Mar, 16:28, Mark Murphy wrote: > On Fri, Mar 18, 2011 at 11:26 AM, Andrea Richiardi > > wrote: > > No worries. > > > But it doesn't work as well. It returns me 4 (here is 4 o'clock PM). > > OK, try jav

Re: [android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Mark Murphy
On Fri, Mar 18, 2011 at 11:26 AM, Andrea Richiardi wrote: > No worries. > > But it doesn't work as well. It returns me 4 (here is 4 o'clock PM). OK, try java.util.Calendar and HOUR_OF_DAY. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.co

[android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Andrea Richiardi
No worries. But it doesn't work as well. It returns me 4 (here is 4 o'clock PM). On 18 Mar, 16:16, Mark Murphy wrote: > On Fri, Mar 18, 2011 at 11:13 AM, Andrea Richiardi > > wrote: > > I can't find any java.util.Time class in my Android sdk...maybe you > > wanna suggent java.util.Date ? > > ::

Re: [android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Mark Murphy
On Fri, Mar 18, 2011 at 11:13 AM, Andrea Richiardi wrote: > I can't find any java.util.Time class in my Android sdk...maybe you > wanna suggent java.util.Date ? :: smacks forehead :: Yes, that the Ruby in me showing through. Yes, you want java.util.Date. My apologies. -- Mark Murphy (a Commons

[android-developers] Re: Time.setToNow and AM/PM

2011-03-18 Thread Andrea Richiardi
I can't find any java.util.Time class in my Android sdk...maybe you wanna suggent java.util.Date ? On 18 Mar, 15:53, Mark Murphy wrote: > On Fri, Mar 18, 2011 at 10:42 AM, Andrea Richiardi > > wrote: > > Hi guys, I would like to ask you something about the Time class. > > Note that you are refer