ASTUTIL

NAME
SYNOPSIS
DESCRIPTION
COMMANDS
EXAMPLES
SEE ALSO

Nokia nmake 13 ASTUTIL(1)

NAME

astutil − libast command line utilities

SYNOPSIS

astutil --help

astutil command [ opts ]

DESCRIPTION

astutil provides a command line interface to various libast routines. Not all libast routines are supported.

COMMANDS

The following commands and their options are supported.

xsdate [-z|-Z] [dateTime|date|time]
Output the date formatted as an XML Schema datatype.

−s

Include fractional seconds.

−S

Remove fractional seconds.

−z

Include time zone.

−Z

Remove time zone.

dateTime

Output current date and time formatted as an XML Schema dateTime datatype. The time zone is included by default. This is the default if no datatype is specified.

date

Output current date formatted as an XML Schema date datatype. The date is output without time zone by default.

time

Output current time formatted as an XML Schema time datatype. The time is output without time zone by default.

date [+FORMAT]
Output the date in the specified format. The following format fields are supported.

%%

% character

%a

Abbreviated weekday name.

%A

Full weekday name.

%b

Abbreviated month name.

%c

ctime(3) style date without the trailing newline.

%C

date(1) style date.

%d

Day of month number.

%D

Date as mm/dd/yy.

%e

Blank padded day of month number.

%E

Unpadded day of month number.

%h

Abbreviated month name.

%H

24-hour clock hour.

%i

International date(1) date that includes the time zone type name.

%I

12-hour clock hour.

%j

1-offset Julian date.

%J

0-offset Julian date.

%l

ls(1) -l date that lists recent dates with hh:mm and distant dates with yyyy.

%m

Month number.

%M

Minutes.

%n

Newline character.

%N

Nanoseconds. Expands to zeros if not supported on the platform.

%p

Meridian (e.g., AM or PM).

%q

Time zone type name (nation code).

%r

12-hour time as hh:mm:ss meridian.

%R

24-hour time as hh:mm.

%S

Seconds.

%t

tab character.

%T

24-hour time as hh:mm:ss.

%U

Week number with Sunday as the first day.

%w

Weekday number.

%W

Week number with Monday as the first

%x

Local date style, using tm_info.format[39], day and year.

%X

Local time style, using tm_info.format[38], and minutes.

%y

2-digit year.

%Y

4-digit year.

%z

+hhmm time zone offset

%:z

+hh:mm time zone offset

%Z

Time zone name.

%#

Number of seconds since the epoch.

EXAMPLES

Print the date formatted as an XML Schema dateTime datatype.

astutil xsdate

Print the time formatted as an XML Schema time datatype with the time zone.

astutil xsdate -z time

Print the date as mm-dd-yyyy.

astutil date "+%m-%d-%Y"

SEE ALSO

nmake(1)
nmake User's Guide
nmake Reference Manual
nmake Web Site
XML Schema Part 2: Datatypes Second Edition


nmake 13 June 2011 ASTUTIL(1)