Skip to content

Commit

Permalink
time
Browse files Browse the repository at this point in the history
  • Loading branch information
askn committed Nov 9, 2015
1 parent 9512f84 commit b87bca3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@
* [Strings](strings/strings.cr)
* [Regular-expressions](regular-expressions/regular-expressions.cr)
* [Json](json/json.cr)
* [Time](time/time.cr)
11 changes: 11 additions & 0 deletions time/time.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
puts Time.now
t = Time.new(2002, 10, 31, 2, 2, 2, 999, Time::Kind::Local)
p t
puts t.year
puts t.month
puts t.day
puts t.hour
puts t.minute
puts t.second
puts t.millisecond
puts t.day_of_week

0 comments on commit b87bca3

Please sign in to comment.