Mark:

That's great news - I'm cheered up already knowing it can be done easily
again.  I did try searching for a few hours to find a good replacement.  I
searched for:

"android relative date time format" (returns nothing seemingly related)

- and -

"getRelativeDateTimeString()" (returns 0 results)

If I include the word DateUtils, I get 1000+ results for older code, which
includes import android.text.format.DateUtils or a similar library.

Thanks,
Nick Owens
VP, ThreeClix
Office: (904) 429-7039
Mobile: (847) 565-9392
After Hours: (904) 540-5830


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mark Murphy
Sent: Wednesday, February 24, 2010 8:55 AM
To: [email protected]
Subject: Re: [android-developers] FormatDateTime

Nick Owens wrote:
> Experts (like Mark M et al.):
> 
> Android development is definitely a moving target, the way the SDK
changes.
> What's most frustrating about it is when it looks like great functionality
> is no longer available!  You see some sample code which looks AWESOME and
is
> EXACTLY what you need, but come to find out it's been removed.  Usually
you
> can replicate it but I am having the darndest time trying to replicate the
> following function from DateUtils!
> 
> getRelativeDateTimeString()
> 
> This function supposedly provides output similar to the Call Log, which
> shows times as "yesterday at 9:30 AM" or "10 mins ago", etc.  Awesome
little
> function, right?  Can't find a replacement ANYWHERE!

Why do you need a replacement? There's a half-dozen flavors of that
method on DateUtils, all available since API Level 3 (a.k.a., Android 1.5).

If you're looking for the source to those methods, try Google Code Search.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to