aboutsummaryrefslogtreecommitdiff
path: root/lib/roken/parse_time.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/roken/parse_time.3')
-rw-r--r--lib/roken/parse_time.314
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/roken/parse_time.3 b/lib/roken/parse_time.3
index da326cb3bc21..7881eab5bb19 100644
--- a/lib/roken/parse_time.3
+++ b/lib/roken/parse_time.3
@@ -28,9 +28,9 @@
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
-.\" $Id$
+.\" $Id: parse_time.3,v 1.3 2013/06/17 18:57:45 robert Exp $
.\"
-.Dd October 31, 2004
+.Dd November 17, 2013
.Dt PARSE_TIME 3
.Os HEIMDAL
.Sh NAME
@@ -54,28 +54,28 @@ The roken library (libroken, -lroken)
.Sh DESCRIPTION
The
.Fn parse_time
-function converts a the period of time specified in
+function converts the period of time specified
into a number of seconds.
The
.Fa timespec
can be any number of
.Aq number unit
pairs separated by comma and whitespace. The number can be
-negative. Number without explicit units are taken as being
+negative. Numbers without explicit units are taken as being
.Fa def_unit .
.Pp
The
.Fn unparse_time
and
.Fn unparse_time_approx
-does the opposite of
+do the opposite of
.Fn parse_time ,
that is they take a number of seconds and express that as human
-readable string.
+readable strings.
.Fa unparse_time
produces an exact time, while
.Fa unparse_time_approx
-restricts the result to only include one units.
+restricts the result to include only one unit.
.Pp
.Fn print_time_table
prints a descriptive list of available units on the passed file