{"id":16577772,"url":"https://github.com/philippus/emoji-clock","last_synced_at":"2025-03-21T12:31:59.455Z","repository":{"id":25005584,"uuid":"102966586","full_name":"Philippus/emoji-clock","owner":"Philippus","description":"🕟 Generate the emoji clock face, moon phase 🌗 , or zodiac sign ♉  🐶  for a given time","archived":false,"fork":false,"pushed_at":"2025-03-14T06:49:38.000Z","size":427,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-14T07:32:30.874Z","etag":null,"topics":["clock","clockface","emoji","moon-phase","scala","zodiac-sign"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/Philippus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["Philippus"]}},"created_at":"2017-09-09T15:53:35.000Z","updated_at":"2025-03-14T06:49:42.000Z","dependencies_parsed_at":"2024-02-28T08:29:00.783Z","dependency_job_id":"9a414478-f770-4037-a541-aca2cf8aa837","html_url":"https://github.com/Philippus/emoji-clock","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philippus%2Femoji-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philippus%2Femoji-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philippus%2Femoji-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philippus%2Femoji-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Philippus","download_url":"https://codeload.github.com/Philippus/emoji-clock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244799468,"owners_count":20512254,"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":["clock","clockface","emoji","moon-phase","scala","zodiac-sign"],"created_at":"2024-10-11T22:12:12.242Z","updated_at":"2025-03-21T12:31:59.092Z","avatar_url":"https://github.com/Philippus.png","language":"Scala","readme":"# Emoji-clock\n\n[![build](https://github.com/Philippus/emoji-clock/workflows/build/badge.svg)](https://github.com/Philippus/emoji-clock/actions/workflows/scala.yml?query=workflow%3Abuild+branch%3Amain)\n[![codecov](https://codecov.io/gh/Philippus/emoji-clock/branch/main/graph/badge.svg)](https://codecov.io/gh/Philippus/emoji-clock)\n![Current Version](https://img.shields.io/badge/version-0.3.1-brightgreen.svg?style=flat \"0.3.1\")\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat \"MIT\")](LICENSE.md)\n\nEmoji-clock can, when given a date-time, generate the applicable emoji short code for:\n- clock faces\n- lunar phases\n- (tropical) zodiac signs\n- chinese zodiac signs\n\nTo view the emoji itself you will need an emoji library such as [Lightbend Emoji](https://github.com/typesafehub/lightbend-emoji).\n\n## Installation\n\nEmoji-clock is published for Scala 2.12 and 2.13. To start using it add the following to your `build.sbt`:\n\n```\nlibraryDependencies += \"nl.gn0s1s\" %% \"emoji-clock\" % \"0.3.1\"\n```\n\n## Example usage\n\nFollow the Lightbend Emoji [installation instructions](https://github.com/typesafehub/lightbend-emoji#installation) also for these examples:\n\n```scala\nimport nl.gn0s1s.emojiclock.EmojiClock\nimport com.lightbend.emoji.ShortCodes.Defaults._\nimport com.lightbend.emoji.ShortCodes.Implicits._\n\nEmojiClock.clockFaceShortCode(java.time.LocalDateTime.of(2018, 1, 31, 1, 50))\n// res0: String = clock2\nEmojiClock.clockFaceShortCode(java.time.LocalDateTime.of(2018, 1, 31, 1, 50)).emoji\n// res1: com.lightbend.emoji.Emoji = 🕑\n\nEmojiClock.now() // at 16:44\n// res2: String = clock430\nEmojiClock.now().emoji\n// res3: com.lightbend.emoji.Emoji = 🕟\n```\n\n```scala\nimport nl.gn0s1s.emojiclock.EmojiLunarPhase\nimport com.lightbend.emoji.ShortCodes.Defaults._\nimport com.lightbend.emoji.ShortCodes.Implicits._\n\nEmojiLunarPhase.lunarPhaseShortCode(java.time.LocalDateTime.of(2018, 1, 31, 0, 0))\n// res0: String = full_moon\nEmojiLunarPhase.lunarPhaseShortCode(java.time.LocalDateTime.of(2017, 12, 10, 0, 0)).emoji\n// res1: com.lightbend.emoji.Emoji = 🌗\n\nEmojiLunarPhase.now() // at 1st December 2017\n// res2: String = full_moon\nEmojiLunarPhase.now().emoji\n// res3: com.lightbend.emoji.Emoji = 🌕\n```\n\n```scala\nimport nl.gn0s1s.emojiclock.EmojiZodiacSign\nimport com.lightbend.emoji.ShortCodes.Defaults._\nimport com.lightbend.emoji.ShortCodes.Implicits._\n\nEmojiZodiacSign.zodiacSignShortCode(java.time.LocalDateTime.of(2018, 1, 31, 0, 0))\n// res0: String = aquarius\nEmojiZodiacSign.zodiacSignShortCode(java.time.LocalDateTime.of(2017, 5, 5, 0, 0)).emoji\n// res1: com.lightbend.emoji.Emoji = ♉\n\nEmojiZodiacSign.now() // at 2nd December 2017\n// res2: String = sagittarius\nEmojiZodiacSign.now().emoji\n// res3: com.lightbend.emoji.Emoji = ♐\n```\n\n```scala\nimport nl.gn0s1s.emojiclock.EmojiChineseZodiac\nimport com.lightbend.emoji.ShortCodes.Defaults._\nimport com.lightbend.emoji.ShortCodes.Implicits._\n\nEmojiChineseZodiac.chineseZodiacSignShortCode(java.time.LocalDateTime.of(2018, 1, 31, 0, 0))\n// res0: String = rooster\nEmojiChineseZodiac.chineseZodiacSignShortCode(java.time.LocalDateTime.of(2015, 5, 5, 0, 0)).emoji\n// res1: com.lightbend.emoji.Emoji = 🐐\n\nEmojiChineseZodiac.now() // at 1st January 2019\n// res2: String = dog\nEmojiChineseZodiac.now().emoji\n// res3: com.lightbend.emoji.Emoji = 🐶\n```\n\n### sbt-prompt\n\nin [examples/sbt-prompt](examples/sbt-prompt) you can see how you could add an emoji clock to your [sbt-prompt](https://github.com/agemooij/sbt-prompt).\n\n## Links\n- Emo R package that does something similar for R - https://github.com/hadley/emo\n- Rust crate that does something similar for the cli - https://github.com/softprops/emoji-clock\n- Lunar phase - https://en.wikipedia.org/wiki/Lunar_phase\n- Sidereal and tropical astrology - https://en.wikipedia.org/wiki/Sidereal_and_tropical_astrology\n- Chinese zodiac - https://en.wikipedia.org/wiki/Chinese_zodiac\n\n## License\nThe code is available under the [MIT license](LICENSE.md).\n","funding_links":["https://github.com/sponsors/Philippus"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippus%2Femoji-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilippus%2Femoji-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippus%2Femoji-clock/lists"}