2 * time.h - DTrace Time include file.
4 * $Id: time.h 36 2007-09-15 06:51:18Z brendan $
6 * COPYRIGHT: Copyright (c) 2007 Brendan Gregg.
10 * The contents of this file are subject to the terms of the
11 * Common Development and Distribution License, Version 1.0 only
12 * (the "License"). You may not use this file except in compliance
15 * You can obtain a copy of the license at Docs/cddl1.txt
16 * or http://www.opensolaris.org/os/licensing.
17 * See the License for the specific language governing permissions
18 * and limitations under the License.
22 * 16-Sep-2007 Brendan Gregg Created this.
26 * TIME_HHMMSS - Returns GMT time as a "HH:MM:SS" string.
31 strjoin(strjoin(strjoin(strjoin(strjoin( \
32 (((walltimestamp / 1000000000) % 86400) / 3600) < 10 ? "0" : "",\
33 lltostr(((walltimestamp / 1000000000) % 86400) / 3600)), ":"), \
34 strjoin((((walltimestamp / 1000000000) % 3600) / 60) < 10 ? \
35 "0" : "", lltostr(((walltimestamp / 1000000000) % 3600) / 60))),\
36 ":"), strjoin(((walltimestamp / 1000000000) % 60) < 10 ? \
37 "0" : "", lltostr((walltimestamp / 1000000000) % 60)))