Skip to content

Commit

Permalink
Merge pull request #3 from dtl/golang
Browse files Browse the repository at this point in the history
kiloseconds as go cmd
  • Loading branch information
bavardage committed Aug 4, 2011
2 parents ed49f68 + 58812e9 commit 8b79fe4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions go/ks.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package main

import (
"fmt"
"time"
)



func main() {
now := time.LocalTime()
seconds := (now.Hour * 3600) + (now.Minute * 60) + now.Second
fmt.Printf("It is %.3f kiloseconds\n", (float64(seconds) / 1000))
}

0 comments on commit 8b79fe4

Please sign in to comment.