summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/strftime.3c
diff options
context:
space:
mode:
authorYuri Pankov <yuri.pankov@nexenta.com>2011-10-03 04:36:40 -0700
committerYuri Pankov <yuri.pankov@nexenta.com>2011-10-03 04:36:40 -0700
commited22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab (patch)
tree3b2f488c4a03bda877119449bd63c01fa32aa6f2 /usr/src/man/man3c/strftime.3c
parentaf8dc4373b25cce2c0bbb80f24e791f99eccbb6f (diff)
downloadillumos-joyent-ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab.tar.gz
1502 Remove conversion cruft from manpages
Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com> Reviewed by: Gordon Ross <gordon.w.ross@gmail.com> Reviewed by: Garrett D'Amore <garrett.damore@gmail.com>
Diffstat (limited to 'usr/src/man/man3c/strftime.3c')
-rw-r--r--usr/src/man/man3c/strftime.3c145
1 files changed, 10 insertions, 135 deletions
diff --git a/usr/src/man/man3c/strftime.3c b/usr/src/man/man3c/strftime.3c
index e1e161aa98..4d73366ae5 100644
--- a/usr/src/man/man3c/strftime.3c
+++ b/usr/src/man/man3c/strftime.3c
@@ -2,14 +2,14 @@
.\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
.\" Copyright 1989 AT&T
.\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
-.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
+.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
.\" http://www.opengroup.org/bookstore/.
.\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
.\" This notice shall appear on any product containing this material.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH strftime 3C "5 Sep 2006" "SunOS 5.11" "Standard C Library Functions"
+.TH STRFTIME 3C "Sep 5, 2006"
.SH NAME
strftime, cftime, ascftime \- convert date and time to string
.SH SYNOPSIS
@@ -64,68 +64,56 @@ in the structure pointed to by \fItimeptr\fR for \fBstrftime()\fR and
\fBcftime()\fR.
.sp
.ne 2
-.mk
.na
\fB\fB%%\fR\fR
.ad
.RS 6n
-.rt
Same as \fB%\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%a\fR\fR
.ad
.RS 6n
-.rt
Locale's abbreviated weekday name.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%A\fR\fR
.ad
.RS 6n
-.rt
Locale's full weekday name.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%b\fR\fR
.ad
.RS 6n
-.rt
Locale's abbreviated month name.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%B\fR\fR
.ad
.RS 6n
-.rt
Locale's full month name.
.RE
.SS "Default"
.sp
.ne 2
-.mk
.na
\fB\fB%c\fR\fR
.ad
.RS 6n
-.rt
Locale's appropriate date and time represented as:
.sp
.in +2
@@ -142,12 +130,10 @@ standards first supported by releases prior to Solaris 2.4. See
.SS "Standard conforming"
.sp
.ne 2
-.mk
.na
\fB\fB%c\fR\fR
.ad
.RS 6n
-.rt
Locale's appropriate date and time represented as:
.sp
.in +2
@@ -163,12 +149,10 @@ This is standard-conforming behavior for standards first supported by Solaris
.SS "Default"
.sp
.ne 2
-.mk
.na
\fB\fB%C\fR\fR
.ad
.RS 6n
-.rt
Locale's date and time representation as produced by \fBdate\fR(1).
.sp
This is the default behavior as well as standard-conforming behavior for
@@ -178,12 +162,10 @@ standards first supported by releases prior to Solaris 2.4.
.SS "Standard conforming"
.sp
.ne 2
-.mk
.na
\fB\fB%C\fR\fR
.ad
.RS 6n
-.rt
Century number (the year divided by 100 and truncated to an integer as a
decimal number [01,99]).
.sp
@@ -193,269 +175,221 @@ This is standard-conforming behavior for standards first supported by Solaris
.sp
.ne 2
-.mk
.na
\fB\fB%d\fR\fR
.ad
.RS 6n
-.rt
Day of month [01,31].
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%D\fR\fR
.ad
.RS 6n
-.rt
Date as \fB%m\fR/\fB%d\fR/\fB%y\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%e\fR\fR
.ad
.RS 6n
-.rt
Day of month [1,31]; single digits are preceded by a space.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%F\fR\fR
.ad
.RS 6n
-.rt
Equivalent to \fB%Y\fR-\fB%m\fR-\fB%d\fR (the ISO 8601:2000 standard date
format).
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%g\fR\fR
.ad
.RS 6n
-.rt
Week-based year within century [00,99].
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%G\fR\fR
.ad
.RS 6n
-.rt
Week-based year, including the century [0000,9999].
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%h\fR\fR
.ad
.RS 6n
-.rt
Locale's abbreviated month name.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%H\fR\fR
.ad
.RS 6n
-.rt
Hour (24-hour clock) [00,23].
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%I\fR\fR
.ad
.RS 6n
-.rt
Hour (12-hour clock) [01,12].
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%j\fR\fR
.ad
.RS 6n
-.rt
Day number of year [001,366].
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%k\fR\fR
.ad
.RS 6n
-.rt
Hour (24-hour clock) [0,23]; single digits are preceded by a space.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%l\fR\fR
.ad
.RS 6n
-.rt
Hour (12-hour clock) [1,12]; single digits are preceded by a space.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%m\fR\fR
.ad
.RS 6n
-.rt
Month number [01,12].
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%M\fR\fR
.ad
.RS 6n
-.rt
Minute [00,59].
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%n\fR\fR
.ad
.RS 6n
-.rt
Insert a NEWLINE.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%p\fR\fR
.ad
.RS 6n
-.rt
Locale's equivalent of either a.m. or p.m.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%r\fR\fR
.ad
.RS 6n
-.rt
Appropriate time representation in 12-hour clock format with \fB%p\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%R\fR\fR
.ad
.RS 6n
-.rt
Time as \fB%H\fR:\fB%M\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%S\fR\fR
.ad
.RS 6n
-.rt
Seconds [00,60]; the range of values is [00,60] rather than [00,59] to allow
for the occasional leap second.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%t\fR\fR
.ad
.RS 6n
-.rt
Insert a TAB.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%T\fR\fR
.ad
.RS 6n
-.rt
Time as \fB%H\fR:\fB%M\fR:\fB%S\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%u\fR\fR
.ad
.RS 6n
-.rt
Weekday as a decimal number [1,7], with 1 representing Monday. See \fBNOTES\fR
below.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%U\fR\fR
.ad
.RS 6n
-.rt
Week number of year as a decimal number [00,53], with Sunday as the first day
of week 1.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%V\fR\fR
.ad
.RS 6n
-.rt
The ISO 8601 week number as a decimal number [01,53]. In the ISO 8601
week-based system, weeks begin on a Monday and week 1 of the year is the week
that includes both January 4th and the first Thursday of the year. If the
@@ -465,79 +399,65 @@ the last week of the preceding year. See \fBNOTES\fR below.
.sp
.ne 2
-.mk
.na
\fB\fB%w\fR\fR
.ad
.RS 6n
-.rt
Weekday as a decimal number [0,6], with 0 representing Sunday.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%W\fR\fR
.ad
.RS 6n
-.rt
Week number of year as a decimal number [00,53], with Monday as the first day
of week 1.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%x\fR\fR
.ad
.RS 6n
-.rt
Locale's appropriate date representation.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%X\fR\fR
.ad
.RS 6n
-.rt
Locale's appropriate time representation.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%y\fR\fR
.ad
.RS 6n
-.rt
Year within century [00,99].
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Y\fR\fR
.ad
.RS 6n
-.rt
Year, including the century (for example 1993).
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%z\fR\fR
.ad
.RS 6n
-.rt
Replaced by offset from UTC in ISO 8601:2000 standard format (\fB+hhmm\fR or
\fB-hhmm\fR), or by no characters if no time zone is determinable. For example,
"-0430" means 4 hours 30 minutes behind UTC (west of Greenwich). If
@@ -548,12 +468,10 @@ is negative, no characters are returned.
.sp
.ne 2
-.mk
.na
\fB\fB%Z\fR\fR
.ad
.RS 6n
-.rt
Time zone name or abbreviation, or no bytes if no time zone information exists.
.RE
@@ -580,236 +498,194 @@ If the alternate format or specification does not exist in the current locale,
the behavior will be as if the unmodified specification were used.
.sp
.ne 2
-.mk
.na
\fB\fB%Ec\fR\fR
.ad
.RS 7n
-.rt
Locale's alternate appropriate date and time representation.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%EC\fR\fR
.ad
.RS 7n
-.rt
Name of the base year (period) in the locale's alternate representation.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Eg\fR\fR
.ad
.RS 7n
-.rt
Offset from \fB%EC\fR of the week-based year in the locale's alternative
representation.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%EG\fR\fR
.ad
.RS 7n
-.rt
Full alternative representation of the week-based year.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Ex\fR\fR
.ad
.RS 7n
-.rt
Locale's alternate date representation.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%EX\fR\fR
.ad
.RS 7n
-.rt
Locale's alternate time representation.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Ey\fR\fR
.ad
.RS 7n
-.rt
Offset from \fB%EC\fR (year only) in the locale's alternate representation.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%EY\fR\fR
.ad
.RS 7n
-.rt
Full alternate year representation.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Od\fR\fR
.ad
.RS 7n
-.rt
Day of the month using the locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Oe\fR\fR
.ad
.RS 7n
-.rt
Same as \fB%Od\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Og\fR\fR
.ad
.RS 7n
-.rt
Week-based year (offset from \fB%C\fR) in the locale's alternate representation
and using the locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%OH\fR\fR
.ad
.RS 7n
-.rt
Hour (24-hour clock) using the locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%OI\fR\fR
.ad
.RS 7n
-.rt
Hour (12-hour clock) using the locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Om\fR\fR
.ad
.RS 7n
-.rt
Month using the locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%OM\fR\fR
.ad
.RS 7n
-.rt
Minutes using the locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%OS\fR\fR
.ad
.RS 7n
-.rt
Seconds using the locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Ou\fR\fR
.ad
.RS 7n
-.rt
Weekday as a number in the locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%OU\fR\fR
.ad
.RS 7n
-.rt
Week number of the year (Sunday as the first day of the week) using the
locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Ow\fR\fR
.ad
.RS 7n
-.rt
Number of the weekday (Sunday=0) using the locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%OW\fR\fR
.ad
.RS 7n
-.rt
Week number of the year (Monday as the first day of the week) using the
locale's alternate numeric symbols.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB%Oy\fR\fR
.ad
.RS 7n
-.rt
Year (offset from \fB%C\fR) in the locale's alternate representation and using
the locale's alternate numeric symbols.
.RE
@@ -863,19 +739,18 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-CSIEnabled
+CSI Enabled
_
-Interface StabilityCommitted
+Interface Stability Committed
_
-MT-LevelMT-Safe
+MT-Level MT-Safe
_
-StandardSee below.
+Standard See below.
.TE
.sp