Skip to content

ziishaned/emoji-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 := emojiclock.TimeToEmoji("2014-03-09T22:47:02.705Z")
  if err != nil {
    log.Fatal(err)
  }
  fmt.Println(emoji) // 🕚
  
  emoji2, err := emojiclock.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

About

Get the emoji clock face for a given time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published