GithubHelp home page GithubHelp logo

nikilster / nsdate-time-ago Goto Github PK

View Code? Open in Web Editor NEW
130.0 130.0 32.0 25 KB

Implements Facebook's format for Time Ago (on their mobile apps)

License: Apache License 2.0

Ruby 4.63% Objective-C 95.37%

nsdate-time-ago's People

Contributors

david-ellinger avatar malcolmhall avatar nikilster avatar palleas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nsdate-time-ago's Issues

Adding new localized strings.

Hi.

Since I am new to ios development, it might sounds silly but need to ask about it. I'd like to add new localized strings for Korean developers. But I couldn't find solution to add new file to NSDateTimeAgo.bundle. I, of course, need the time-ago method for the current project. Please let me know how to add new locazlied string so that I can make pull request to enrich this fascinating category.

Thanks.

Distribute via CocoaPod?

Would it be possible to be able to get this from a cocoa pod?
I would be more than happy to fork the repo and do that if you wish.

Something similar for distance?

Hi,

Do you happen to have done a library similar to this for distance? I'm looking for one that will take meters and then go to km if it goes above 1k etc.

Localization to other language

This change can help so many developer because when they use that utility, they want to smooth their app -> localization is good to go

+1 very good library
Thank

64 bit bug. It thinks distant past is in future.

Calling [[NSDate distantPast] formattedAsTimeAgo] gives "In The Future".

The bug is in this line:

NSTimeInterval secondsSince = -(int)[self timeIntervalSinceDate:now];

It should be

NSTimeInterval secondsSince = -(NSInteger)[self timeIntervalSinceDate:now];

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.