{"id":18330047,"url":"https://github.com/brookswon/btnsdateformatterfactory","last_synced_at":"2025-04-06T01:33:02.757Z","repository":{"id":56903282,"uuid":"116244402","full_name":"BrooksWon/BTNSDateFormatterFactory","owner":"BrooksWon","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-05T07:33:31.000Z","size":125,"stargazers_count":25,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T15:12:24.206Z","etag":null,"topics":["memory","nscache","nsdateformatter"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BrooksWon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-04T10:02:11.000Z","updated_at":"2021-04-09T02:10:27.000Z","dependencies_parsed_at":"2022-08-21T01:50:49.270Z","dependency_job_id":null,"html_url":"https://github.com/BrooksWon/BTNSDateFormatterFactory","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrooksWon%2FBTNSDateFormatterFactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrooksWon%2FBTNSDateFormatterFactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrooksWon%2FBTNSDateFormatterFactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrooksWon%2FBTNSDateFormatterFactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrooksWon","download_url":"https://codeload.github.com/BrooksWon/BTNSDateFormatterFactory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423461,"owners_count":20936621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["memory","nscache","nsdateformatter"],"created_at":"2024-11-05T19:20:05.964Z","updated_at":"2025-04-06T01:32:58.136Z","avatar_url":"https://github.com/BrooksWon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BTNSDateFormatterFactory\n\nSmart reuse of NSDateFormatter instances.\n\n`NSDateFormatter` class is very useful to display dates the way you want, handling regional settings, locales and formats.\n\nThe bad thing about `NSDateFormatter` is the cost to create a new instance or set format and locale. Actually these actions are one of the most slow operations on iOS SDK and you really must avoid it.\n\n`DFDateFormatterFactory` is here to help you with this. This class retain the last 15 date formatter instances and return the already loaded based on format and locale you want. Also, the cache were implemented using the standard `NSCache` and should handle memory fine when memory warnings happens.\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n## Installation\n\n`BTNSDateFormatterFactory` is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```\npod 'BTNSDateFormatterFactory'\n```\n\nor\n\nTo install the `BTDateFormatterFactory`, just drag and drop the .h and .m files into your project folder. Import them when you need it.\n\n## Usage\n\n```\nNSDateFormatter *dateFormatter = [[BTNSDateFormatterFactory sharedFactory] dateFormatterWithFormat:@\"yyyy-MM-dd\" andLocaleIdentifier:@\"zh_CN\"];\n```\n## Author\n\nBrooksWon, jianyu996@163.com\n\n## License\n\nBTNSDateFormatterFactory is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrookswon%2Fbtnsdateformatterfactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrookswon%2Fbtnsdateformatterfactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrookswon%2Fbtnsdateformatterfactory/lists"}