Get the emoji clock face for a given time.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 3fb7f1e Oct 12, 2018
Permalink
Failed to load latest commit information.
.editorconfig Format code Oct 8, 2018
.travis.yml Update .travis.yml Oct 8, 2018
LICENSE.md Add LICENSE.md Oct 8, 2018
Makefile Update .travis.yml Oct 8, 2018
README.md Update README.md Oct 12, 2018
emoji_clock.go Refactor code Oct 12, 2018
emoji_clock_test.go Run go fmt command Oct 9, 2018

README.md

emoji-clock Build Status Go Report Codecov Software License

Get the emoji clock face for a given time.

Install

To install this library run the following command inside your terminal:

go get github.com/ziishaned/emoji-clock

Usage

package main

import (
  "fmt"
  "log"
  . "github.com/ziishaned/emoji-clock"
)

func main() {
  emoji, err := TimeToEmoji("2014-03-09T22:47:02.705Z")
  if err != nil {
    log.Fatal(err)
  }
  fmt.Println(emoji) // 🕚
  
  emoji2, err := TimeToEmoji("2018-10-09T21:40:02.705Z")
  if err != nil {
    log.Fatal(err)
  }
  fmt.Println(emoji2) // 🕤
}

Contributions

Feel free to submit pull requests, create issues or spread the word.

License

MIT © Zeeshan Ahmad