Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d9d114ec
Commit
d9d114ec
authored
Mar 04, 2011
by
Janne Blomqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PR 47802 Update doc for CTIME and FDATE intrinsics
From-SVN: r170679
parent
f787ea5a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
12 deletions
+23
-12
gcc/fortran/ChangeLog
+5
-0
gcc/fortran/intrinsic.texi
+18
-12
No files found.
gcc/fortran/ChangeLog
View file @
d9d114ec
2011-03-04 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/47802
* intrinsic.texi: Update CTIME and FDATE documentation.
2011-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* invoke.texi (Option Summary, Fortran Dialect Options)
...
...
gcc/fortran/intrinsic.texi
View file @
d9d114ec
...
...
@@ -3218,7 +3218,10 @@ end program test_cshift
@
table
@
asis
@
item
@
emph
{
Description
}:
@
code
{
CTIME
}
converts
a
system
time
value
,
such
as
returned
by
@
code
{
TIME8
},
to
a
string
of
the
form
@
samp
{
Sat
Aug
19
18
:
13
:
14
1995
}.
@
code
{
TIME8
},
to
a
string
.
Unless
the
application
has
called
@
code
{
setlocale
},
the
output
will
be
in
the
default
locale
,
of
length
24
and
of
the
form
@
samp
{
Sat
Aug
19
18
:
13
:
14
1995
}.
In
other
locales
,
a
longer
string
may
result
.
This
intrinsic
is
provided
in
both
subroutine
and
function
forms
;
however
,
only
one
form
can
be
used
in
any
given
program
unit
.
...
...
@@ -3232,14 +3235,16 @@ Subroutine, function
@
item
@
emph
{
Syntax
}:
@
multitable
@
columnfractions
.80
@
item
@
code
{
CALL
CTIME
(
TIME
,
RESULT
)}.
@
item
@
code
{
RESULT
=
CTIME
(
TIME
)}
,
(
not
recommended
)
.
@
item
@
code
{
RESULT
=
CTIME
(
TIME
)}.
@
end
multitable
@
item
@
emph
{
Arguments
}:
@
multitable
@
columnfractions
.15
.70
@
item
@
var
{
TIME
}
@
tab
The
type
shall
be
of
type
@
code
{
INTEGER
(
KIND
=
8
)
}.
@
item
@
var
{
TIME
}
@
tab
The
type
shall
be
of
type
@
code
{
INTEGER
}.
@
item
@
var
{
RESULT
}
@
tab
The
type
shall
be
of
type
@
code
{
CHARACTER
}
and
of
default
kind
.
of
default
kind
.
It
is
an
@
code
{
INTENT
(
OUT
)}
argument
.
If
the
length
of
this
variable
is
too
short
for
the
time
and
date
string
to
fit
completely
,
it
will
be
blank
on
procedure
return
.
@
end
multitable
@
item
@
emph
{
Return
value
}:
...
...
@@ -3260,7 +3265,7 @@ end program test_ctime
@
end
smallexample
@
item
@
emph
{
See
Also
}:
@
ref
{
GMTIME
},
@
ref
{
LTIME
},
@
ref
{
TIME
},
@
ref
{
TIME8
}
@
ref
{
DATE_AND_TIME
},
@
ref
{
GMTIME
},
@
ref
{
LTIME
},
@
ref
{
TIME
},
@
ref
{
TIME8
}
@
end
table
...
...
@@ -4420,9 +4425,6 @@ TIME())}.
This intrinsic is provided in both subroutine and function forms; however,
only one form can be used in any given program unit.
@var{DATE} is an @code{INTENT(OUT)} @code{CHARACTER} variable of the
default kind.
@item @emph{Standard}:
GNU extension
...
...
@@ -4432,17 +4434,19 @@ Subroutine, function
@item @emph{Syntax}:
@multitable @columnfractions .80
@item @code{CALL FDATE(DATE)}.
@item @code{DATE = FDATE()}
, (not recommended)
.
@item @code{DATE = FDATE()}.
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
@item @var{DATE}@tab The type shall be of type @code{CHARACTER} of the
default kind
default kind. It is an @code{INTENT(OUT)} argument. If the length of
this variable is too short for the date and time string to fit
completely, it will be blank on procedure return.
@end multitable
@item @emph{Return value}:
The current date as a string.
The current date a
nd time a
s a string.
@item @emph{Example}:
@smallexample
...
...
@@ -4458,8 +4462,10 @@ program test_fdate
print *, '
Program
ended
on
', date
end program test_fdate
@end smallexample
@end table
@item @emph{See also}:
@ref{DATE_AND_TIME}, @ref{CTIME}
@end table
@node FGET
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment