Clockwork.jl

Represent modular arithmetic via clock symbols
Popularity
23 Stars
Updated Last
3 Years Ago
Started In
October 2015

Clockwork

CI passing

Basics

Do all your favorite clock things:

using Clockwork
@test ๐Ÿ•Ÿ+๐Ÿ•== ๐Ÿ•” # 3:30 + 1:30 == 5:00
@test ๐Ÿ•‘^50 == ๐Ÿ•“
@test Clock("3:30") == ๐Ÿ•Ÿ
let cp = Dates.Hour(3) + Dates.Minute(30)
  @test Clock(cp) == ๐Ÿ•Ÿ
  @test Dates.CompoundPeriod(๐Ÿ•Ÿ) == cp
end

Clock algebra

julia> hooks_nightmare = rand(Clock,10,10)
10x10 Array{Clockwork.Clock,2}:
 ๐Ÿ•   ๐Ÿ•ข  ๐Ÿ•™  ๐Ÿ•ง  ๐Ÿ•ฆ  ๐Ÿ•ง  ๐Ÿ•™  ๐Ÿ•˜  ๐Ÿ•š  ๐Ÿ•
 ๐Ÿ•”  ๐Ÿ•›  ๐Ÿ•”  ๐Ÿ•ข  ๐Ÿ•ค  ๐Ÿ•ฅ  ๐Ÿ•ฅ  ๐Ÿ•ข  ๐Ÿ•ฆ  ๐Ÿ•ฃ
 ๐Ÿ•“  ๐Ÿ•’  ๐Ÿ•  ๐Ÿ•  ๐Ÿ•  ๐Ÿ•ฅ  ๐Ÿ•˜  ๐Ÿ•™  ๐Ÿ•ฆ  ๐Ÿ••
 ๐Ÿ•ง  ๐Ÿ•’  ๐Ÿ•’  ๐Ÿ•“  ๐Ÿ•Ÿ  ๐Ÿ•‘  ๐Ÿ•™  ๐Ÿ•—  ๐Ÿ•  ๐Ÿ••
 ๐Ÿ•˜  ๐Ÿ•š  ๐Ÿ•Ÿ  ๐Ÿ•™  ๐Ÿ•’  ๐Ÿ•ž  ๐Ÿ•“  ๐Ÿ•”  ๐Ÿ•ฅ  ๐Ÿ•ง
 ๐Ÿ•“  ๐Ÿ•ง  ๐Ÿ•ž  ๐Ÿ•ž  ๐Ÿ•–  ๐Ÿ•ง  ๐Ÿ•  ๐Ÿ•‘  ๐Ÿ•ฅ  ๐Ÿ•
 ๐Ÿ•”  ๐Ÿ•ฃ  ๐Ÿ•”  ๐Ÿ•™  ๐Ÿ•   ๐Ÿ•”  ๐Ÿ•–  ๐Ÿ•ž  ๐Ÿ•ข  ๐Ÿ••
 ๐Ÿ•›  ๐Ÿ•ง  ๐Ÿ•ฅ  ๐Ÿ•ฅ  ๐Ÿ•ง  ๐Ÿ•š  ๐Ÿ•™  ๐Ÿ•”  ๐Ÿ•›  ๐Ÿ•ข
 ๐Ÿ••  ๐Ÿ•—  ๐Ÿ•  ๐Ÿ•ง  ๐Ÿ•ง  ๐Ÿ•ฅ  ๐Ÿ••  ๐Ÿ•“  ๐Ÿ•ค  ๐Ÿ•˜
 ๐Ÿ•’  ๐Ÿ•“  ๐Ÿ•ฅ  ๐Ÿ•ง  ๐Ÿ•ฃ  ๐Ÿ•”  ๐Ÿ•ฅ  ๐Ÿ•˜  ๐Ÿ•ฅ  ๐Ÿ•Ÿ
julia> hooks_nightmare * rand(Clock, 10, 2)
10x2 Array{Clockwork.Clock,2}:
 ๐Ÿ•  ๐Ÿ• 
 ๐Ÿ•—  ๐Ÿ•‘
 ๐Ÿ•  ๐Ÿ•”
 ๐Ÿ•  ๐Ÿ•˜
 ๐Ÿ•ก  ๐Ÿ•ข
 ๐Ÿ•ง  ๐Ÿ•š
 ๐Ÿ•ง  ๐Ÿ••
 ๐Ÿ•›  ๐Ÿ•
 ๐Ÿ•ง  ๐Ÿ• 
 ๐Ÿ•›  ๐Ÿ•ค