Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/stdtime/strftime.3
Show All 26 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" 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 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)strftime.3 8.1 (Berkeley) 6/4/93 | .\" @(#)strftime.3 8.1 (Berkeley) 6/4/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd June 25, 2012 | .Dd November 2, 2021 | ||||
.Dt STRFTIME 3 | .Dt STRFTIME 3 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm strftime | .Nm strftime | ||||
.Nd format date and time | .Nd format date and time | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
▲ Show 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | |||||
single digits are preceded by a blank. | single digits are preceded by a blank. | ||||
.It Cm %l | .It Cm %l | ||||
is replaced by the hour (12-hour clock) as a decimal number (1-12); | is replaced by the hour (12-hour clock) as a decimal number (1-12); | ||||
single digits are preceded by a blank. | single digits are preceded by a blank. | ||||
.It Cm \&%M | .It Cm \&%M | ||||
is replaced by the minute as a decimal number (00-59). | is replaced by the minute as a decimal number (00-59). | ||||
.It Cm %m | .It Cm %m | ||||
is replaced by the month as a decimal number (01-12). | is replaced by the month as a decimal number (01-12). | ||||
.It Cm %N | |||||
is replaced by the nanosecond as a decimal number (000000000-999999999). | |||||
.It Cm %n | .It Cm %n | ||||
is replaced by a newline. | is replaced by a newline. | ||||
.It Cm %O* | .It Cm %O* | ||||
the same as | the same as | ||||
.Cm %E* . | .Cm %E* . | ||||
.It Cm %p | .It Cm %p | ||||
is replaced by national representation of either | is replaced by national representation of either | ||||
"ante meridiem" (a.m.) | "ante meridiem" (a.m.) | ||||
▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
.Ql \&%D , | .Ql \&%D , | ||||
.Ql %E* , | .Ql %E* , | ||||
.Ql %e , | .Ql %e , | ||||
.Ql %G , | .Ql %G , | ||||
.Ql %g , | .Ql %g , | ||||
.Ql %h , | .Ql %h , | ||||
.Ql %k , | .Ql %k , | ||||
.Ql %l , | .Ql %l , | ||||
.Ql %N , | |||||
.Ql %n , | .Ql %n , | ||||
.Ql %O* , | .Ql %O* , | ||||
.Ql \&%R , | .Ql \&%R , | ||||
.Ql %r , | .Ql %r , | ||||
.Ql %s , | .Ql %s , | ||||
.Ql \&%T , | .Ql \&%T , | ||||
.Ql %t , | .Ql %t , | ||||
.Ql %u , | .Ql %u , | ||||
Show All 22 Lines |