Coder Social home page Coder Social logo

Comments (4)

curioustechizen avatar curioustechizen commented on June 4, 2024

@Giorgi that is already supported (it is in fact a feature of the DateUtils class provided by Android). If you specify a reference time in the future, the text displays stings like "tomorrow", "in 2 mins" etc. These are auto-refreshed only as frequently as needed (just like the case where the timestamp is in the past).

I will update the sample app to reflect this. Meanwhile, if there is anything specific that you tried and had issues with, please let me know.

from android-ago.

Giorgi avatar Giorgi commented on June 4, 2024

@curioustechizen Thanks for your answer. As the feature is already supported I'll close the issue. I guess a screenshot would be helpful so that others are not confused either.

from android-ago.

niharikasah avatar niharikasah commented on June 4, 2024

@curioustechizen its not showing tomorrow instead shows number of hours, for instance if date in 29/3/2018 at 3:40pm and today is 28/3/2018 2:40pm, the text rendered is "In 23 hrs" instead of tomorrow. Can you please verify this?

from android-ago.

curioustechizen avatar curioustechizen commented on June 4, 2024

@niharikasah If I remember correctly, if the date is more than 24 hours in the future, it shows as "tomorrow". You can see this in the sample.
This is a feature of the DateUtils API that is used by this library.

from android-ago.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.