All Projects โ†’ Philippus โ†’ emoji-clock

Philippus / emoji-clock

Licence: MIT License
๐Ÿ•Ÿ Generate the emoji clock face, moon phase ๐ŸŒ— , or zodiac sign โ™‰ ๐Ÿถ for a given time

Programming Languages

scala
5932 projects

Projects that are alternatives of or similar to emoji-clock

NikeClockIcon
Custom macOS Dock Icon with clock inspired by Nike Watch Face
Stars: โœญ 27 (+125%)
Mutual labels:  clock, clockface
moonmoji
๐ŸŒ› Return an emoji representing the current moon phase.
Stars: โœญ 86 (+616.67%)
Mutual labels:  emoji, moon-phase
pingPongBallClock
Raspberry Pi code for the Ping Pong Ball Clock Project
Stars: โœญ 23 (+91.67%)
Mutual labels:  clock, clockface
worldclock
A Sci-fi looking World Clock created using JavaFX.
Stars: โœญ 28 (+133.33%)
Mutual labels:  clock, clockface
EKAstrologyCalc
Astrology Calculator calculates moon's rise/set times, moon Age, moon phases and Zodiac Sign for location and time
Stars: โœญ 31 (+158.33%)
Mutual labels:  zodiac-sign, moon-phase
Callisto
A desk clock that uses a Russian IV-18 VFD tube
Stars: โœญ 18 (+50%)
Mutual labels:  clock
birthday-keeper
ไธ€ไธช็”Ÿๆ—ฅ็ฎก็†APP, UI้ฃŽๆ ผๆจกไปฟ็š„็ณป็ปŸ้—น้’Ÿ, ๅฏไปฅๆทปๅŠ , ็ผ–่พ‘, ๅˆ ้™ค็”Ÿๆ—ฅไปฅๅŠๆœฌๅœฐๆŽจ้€ๆ้†’, ้กน็›ฎๆˆชๅ›พ่งREADME.
Stars: โœญ 27 (+125%)
Mutual labels:  clock
ggChernoff
R package for drawing Chernoff faces in ggplot2
Stars: โœญ 28 (+133.33%)
Mutual labels:  emoji
contour
Modern C++ Terminal Emulator
Stars: โœญ 761 (+6241.67%)
Mutual labels:  emoji
latex-emoji
Emoji support in (Lua)LaTeX
Stars: โœญ 32 (+166.67%)
Mutual labels:  emoji
clockface
UI Kit for building Chronograf
Stars: โœญ 33 (+175%)
Mutual labels:  clockface
lepre
๐Ÿฐ Lightweight Emoji Picker for React Enthusiast
Stars: โœญ 15 (+25%)
Mutual labels:  emoji
ios-emojikeyboard
Emoji Keyboard for iOS (support sticker as well)
Stars: โœญ 19 (+58.33%)
Mutual labels:  emoji
clock
High-resolution clock functions: monotonic, realtime, cputime.
Stars: โœญ 52 (+333.33%)
Mutual labels:  clock
alarm-clock
An alarm clock for Emacs
Stars: โœญ 15 (+25%)
Mutual labels:  clock
dart-emoji
A light-weight Emoji ๐Ÿ“ฆ for Dart & Flutter with all up-to-date emojis written in pure Dart ๐Ÿ˜„ . Made from ๐Ÿ’ฏ% โ˜• with โค๏ธ!
Stars: โœญ 16 (+33.33%)
Mutual labels:  emoji
printer
A fancy logger yet lightweight, and configurable. ๐Ÿ–จ
Stars: โœญ 65 (+441.67%)
Mutual labels:  emoji
ngx-emoj
A simple, theme-able emoji mart/picker for angular 4+
Stars: โœญ 18 (+50%)
Mutual labels:  emoji
emoji picker flutter
A Flutter package that provides an Emoji picker widget with 1500+ emojis in 8 categories.
Stars: โœญ 55 (+358.33%)
Mutual labels:  emoji
umoji
๐Ÿ˜„ A lib convert emoji unicode to Surrogate pairs
Stars: โœญ 68 (+466.67%)
Mutual labels:  emoji

Emoji-clock

build codecov Current Version License

Emoji-clock can, when given a date-time, generate the applicable emoji short code for:

  • clock faces
  • lunar phases
  • (tropical) zodiac signs
  • chinese zodiac signs

To view the emoji itself you will need an emoji library such as Lightbend Emoji.

Installation

Emoji-clock is published for Scala 2.12 and 2.13. To start using it add the following to your build.sbt:

libraryDependencies += "nl.gn0s1s" %% "emoji-clock" % "0.3.1"

Example usage

Follow the Lightbend Emoji installation instructions also for these examples:

import nl.gn0s1s.emojiclock.EmojiClock
import com.lightbend.emoji.ShortCodes.Defaults._
import com.lightbend.emoji.ShortCodes.Implicits._

EmojiClock.clockFaceShortCode(java.time.LocalDateTime.of(2018, 1, 31, 1, 50))
// res0: String = clock2
EmojiClock.clockFaceShortCode(java.time.LocalDateTime.of(2018, 1, 31, 1, 50)).emoji
// res1: com.lightbend.emoji.Emoji = ๐Ÿ•‘

EmojiClock.now() // at 16:44
// res2: String = clock430
EmojiClock.now().emoji
// res3: com.lightbend.emoji.Emoji = ๐Ÿ•Ÿ
import nl.gn0s1s.emojiclock.EmojiLunarPhase
import com.lightbend.emoji.ShortCodes.Defaults._
import com.lightbend.emoji.ShortCodes.Implicits._

EmojiLunarPhase.lunarPhaseShortCode(java.time.LocalDateTime.of(2018, 1, 31, 0, 0))
// res0: String = full_moon
EmojiLunarPhase.lunarPhaseShortCode(java.time.LocalDateTime.of(2017, 12, 10, 0, 0)).emoji
// res1: com.lightbend.emoji.Emoji = ๐ŸŒ—

EmojiLunarPhase.now() // at 1st December 2017
// res2: String = full_moon
EmojiLunarPhase.now().emoji
// res3: com.lightbend.emoji.Emoji = ๐ŸŒ•
import nl.gn0s1s.emojiclock.EmojiZodiacSign
import com.lightbend.emoji.ShortCodes.Defaults._
import com.lightbend.emoji.ShortCodes.Implicits._

EmojiZodiacSign.zodiacSignShortCode(java.time.LocalDateTime.of(2018, 1, 31, 0, 0))
// res0: String = aquarius
EmojiZodiacSign.zodiacSignShortCode(java.time.LocalDateTime.of(2017, 5, 5, 0, 0)).emoji
// res1: com.lightbend.emoji.Emoji = โ™‰

EmojiZodiacSign.now() // at 2nd December 2017
// res2: String = sagittarius
EmojiZodiacSign.now().emoji
// res3: com.lightbend.emoji.Emoji = โ™
import nl.gn0s1s.emojiclock.EmojiChineseZodiac
import com.lightbend.emoji.ShortCodes.Defaults._
import com.lightbend.emoji.ShortCodes.Implicits._

EmojiChineseZodiac.chineseZodiacSignShortCode(java.time.LocalDateTime.of(2018, 1, 31, 0, 0))
// res0: String = rooster
EmojiChineseZodiac.chineseZodiacSignShortCode(java.time.LocalDateTime.of(2015, 5, 5, 0, 0)).emoji
// res1: com.lightbend.emoji.Emoji = ๐Ÿ

EmojiChineseZodiac.now() // at 1st January 2019
// res2: String = dog
EmojiChineseZodiac.now().emoji
// res3: com.lightbend.emoji.Emoji = ๐Ÿถ

Links

License

The code is available under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].