46 lines
1.0 KiB
Groff
46 lines
1.0 KiB
Groff
.\" Copyright (c) 1983 Regents of the University of California.
|
|
.\" All rights reserved. The Berkeley software License Agreement
|
|
.\" specifies the terms and conditions for redistribution.
|
|
.\"
|
|
.\" @(#)fdate.3 1.1 92/07/30 SMI; from UCB 6.2 5/27/86
|
|
.TH FDATE 3F "6 October 1987"
|
|
.SH NAME
|
|
fdate \- return date and time in an ASCII string
|
|
.SH SYNOPSIS
|
|
.nf
|
|
.B subroutine fdate(string)
|
|
.B character*24 string
|
|
.LP
|
|
.B character*24 function fdate(\|)
|
|
.fi
|
|
.SH DESCRIPTION
|
|
.IX "fdate function" "" "\fLfdate\fR \(em return date and time in \s-1ASCII\s0 format"
|
|
.IX "date and time display \(em \fLfdate\fR"
|
|
.LP
|
|
.B fdate(\|)
|
|
returns the current date and time as a 24 character string
|
|
in the format described under
|
|
.BR ctime (3).
|
|
Neither
|
|
.SM NEWLINE
|
|
nor
|
|
.SM NULL
|
|
will be included.
|
|
.LP
|
|
.B fdate(\|)
|
|
can be called either as a function or as a subroutine.
|
|
If called as a function, the calling routine must define
|
|
its type and length. For example:
|
|
.LP
|
|
.RS
|
|
.nf
|
|
.ft B
|
|
character*24 fdate
|
|
.BR write (*,*) fdate(\|)
|
|
.ft R
|
|
.fi
|
|
.RE
|
|
.SH "SEE ALSO"
|
|
.BR ctime (3),
|
|
.BR time (3F)
|