Lines Matching +full:se +full:- +full:pos
2 * Copyright (c) 1998-2001 Proofpoint, Inc. and its suppliers.
4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
16 SM_RCSID("@(#)$Id: convtime.c,v 8.40 2013-11-22 20:51:55 ca Exp $")
20 ** CONVTIME -- convert time
24 ** s -- seconds
25 ** m -- minutes
26 ** h -- hours
27 ** d -- days (default)
28 ** w -- weeks
32 ** p -- pointer to ascii time.
33 ** units -- default units if none specified.
49 bool pos = true; variable
54 if (*p == '-')
56 pos = false;
63 t = t * 10 + (c - '0');
67 p--;
100 return pos ? r : -r;
103 ** PINTVL -- produce printable version of a time interval
106 ** intvl -- the interval to be converted
107 ** brief -- if true, print this in an extremely compact form
130 int wk, dy, hr, mi, se; local
138 se = intvl % 60;
166 hr, mi, se);
195 if (se > 0)
197 (void) sm_snprintf(p, SPACELEFT(buf, p), ", %d second%s", se,
198 PLURAL(se));