{"id":1055,"url":"https://github.com/thomaspaulmann/EmojiTimeFormatter","last_synced_at":"2025-07-30T20:31:03.489Z","repository":{"id":142898854,"uuid":"66224052","full_name":"thomaspaulmann/EmojiTimeFormatter","owner":"thomaspaulmann","description":"🕐 Format your dates/times as emojis.","archived":false,"fork":false,"pushed_at":"2016-11-05T13:43:44.000Z","size":35,"stargazers_count":83,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-02T22:35:01.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/thomaspaulmann.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-08-21T22:42:05.000Z","updated_at":"2023-10-19T07:09:18.000Z","dependencies_parsed_at":"2023-03-26T16:20:40.353Z","dependency_job_id":null,"html_url":"https://github.com/thomaspaulmann/EmojiTimeFormatter","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaspaulmann%2FEmojiTimeFormatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaspaulmann%2FEmojiTimeFormatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaspaulmann%2FEmojiTimeFormatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaspaulmann%2FEmojiTimeFormatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomaspaulmann","download_url":"https://codeload.github.com/thomaspaulmann/EmojiTimeFormatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228179153,"owners_count":17881137,"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":[],"created_at":"2024-01-05T20:15:37.963Z","updated_at":"2024-12-04T19:32:44.837Z","avatar_url":"https://github.com/thomaspaulmann.png","language":"Swift","funding_links":[],"categories":["Date \u0026 Time"],"sub_categories":["Getting Started","Other free courses","Linter"],"readme":"[![Swift](https://img.shields.io/badge/Swift-3.0-green.svg)](https://swift.org)\n[![Swift Package Manager compatible](https://img.shields.io/badge/SPM-compatible-blue.svg?style=flat)](https://swift.org/package-manager/)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n# EmojiTimeFormatter\n\nFormat your dates/times as emojis 🕟 🕑 🕗\n\n## Description\n\nYou can build easy to understand user interfaces with EmojiTimeFormatter or can do funny things like that:\n\n![Screencast](https://raw.githubusercontent.com/PowerOfEmojis/EmojiClock/master/Screencasts/emojiclock-300px.gif)\n\nThe example is accessable via [Power of Emojis](https://github.com/PowerOfEmojis/EmojiClock).\n\n## Installation\n\nEmojiTimeFormatter supports multiple methods for installing the library in a project. You can find the latest version in the [release tab](https://github.com/thomaspaulmann/EmojiTimeFormatter/releases/latest).\n\n### Installation with Swift Package Manager\n\nTo integrate EmojiTimeFormatter into your Xcode project using [Swift Package Manager](https://swift.org/package-manager/), specify it in your `Package.swift` file:\n\n``` Swift\nimport PackageDescription\n\nlet package = Package(\n    [...]\n    dependencies: [\n        .Package(url: \"https://github.com/thomaspaulmann/EmojiTimeFormatter.git\", majorVersion: XYZ)\n    ]\n)\n```\n\n### Installation with Carthage\n\nTo integrate EmojiTimeFormatter into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:\n\n```\ngithub \"thomaspaulmann/EmojiTimeFormatter\" ~\u003e X.Y.Z\n```\n\nRun `carthage update --toolchain com.apple.dt.toolchain.XcodeDefault` to build the framework and drag the built EmojiTimeFormatter.framework into your Xcode project. It's important to specify your [toolchain in the Xcode beta builds](https://github.com/Carthage/Carthage/issues/1417).\n\n### Installation without anything\n\nTo integrate EmojiTimeFormatter into your Xcode project using nothing but your hands, copy the [Sources](/Sources) folder to your Xcode project. It's only two files and 200 lines of code.\n\n## Usage\n\nYou can convert dates to clock face emojis and vice versa.\n\n### Date to Emoji\n\nCreate a new `EmojiTimeFormatter`, get the `ClockFaceEmoji` for your `Date` and print it. It's that simple.\n\n``` Swift\nlet now = Date()\nlet formatter = EmojiTimeFormatter()\nlet clockFaceEmoji = formatter.clockFace(from: now)\n\nprint(\"It's \\(clockFaceEmoji) o'clock.\") // Output: It's 🕢 o'clock.\n```\n\n### Emoji to Date\n\nIt's also possible to convert a `ClockFaceEmoji` back to a `Date`. Create a new `EmojiTimeFormatter`, get the `Date` for your `ClockFaceEmoji` and print it. It's that simple, again.\n\n``` Swift\nlet twelveThirty = ClockFaceEmoji.twelveThirty\nlet formatter = EmojiTimeFormatter()\nlet date = formatter.date(from: twelveThirty)\n\nprint(\"It's \\(date).\") // Output: It's 1970-01-01 00:30:00 +0000.\n```\n\nNote: Actually it's not a date, it's a time relative to 00:00:00 UTC on 1 January 1970.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomaspaulmann%2FEmojiTimeFormatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomaspaulmann%2FEmojiTimeFormatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomaspaulmann%2FEmojiTimeFormatter/lists"}