Commit 419c8950 authored by Kirill Smelkov's avatar Kirill Smelkov

time: Provide package documentation

Briefly describe provided functionality instead of only referring to
https://golang.org/pkg/time.
parent 40f3b90c
......@@ -19,9 +19,13 @@
# See https://www.nexedi.com/licensing for rationale and options.
"""Package time mirrors Go package time.
See the following link about Go time package:
- `now` returns current time.
- `sleep` pauses current task.
- `Ticker` and `Timer` provide timers integrated with channels.
- `tick`, `after` and `after_func` are convenience wrappers to use
tickers and timers easily.
https://golang.org/pkg/time
See also https://golang.org/pkg/time for Go time package documentation.
"""
# golang/pyx - the same as std python - represents time as float
......
......@@ -19,9 +19,13 @@
# See https://www.nexedi.com/licensing for rationale and options.
"""Package time mirrors Go package time.
See the following link about Go time package:
- `now` returns current time.
- `sleep` pauses current task.
- `Ticker` and `Timer` provide timers integrated with channels.
- `tick`, `after` and `after_func` are convenience wrappers to use
tickers and timers easily.
https://golang.org/pkg/time
See also https://golang.org/pkg/time for Go time package documentation.
"""
from __future__ import print_function, absolute_import
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment