libtime++: Date and time calculation
ttime_read.f
Go to the documentation of this file.
1 c this is <ttime_read.f>
2 c------------------------------------------------------------------------------
3 c
4 c Copyright 02/02/99 by Thomas Forbriger (IfG Stuttgart)
5 c
6 c test libtime read-function
7 c
8 c ----
9 c libtime is free software; you can redistribute it and/or modify
10 c it under the terms of the GNU General Public License as published by
11 c the Free Software Foundation; either version 2 of the License, or
12 c (at your option) any later version.
13 c
14 c This program is distributed in the hope that it will be useful,
15 c but WITHOUT ANY WARRANTY; without even the implied warranty of
16 c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 c GNU General Public License for more details.
18 c
19 c You should have received a copy of the GNU General Public License
20 c along with this program; if not, write to the Free Software
21 c Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 c ----
23 c
24 c REVISIONS and CHANGES
25 c 02/02/99 V1.0 Thomas Forbriger
26 c
27 c==============================================================================
28 c
29  program ttime_read
30  character*79 string
31  integer date(7)
32  string=' '
33  print *,'enter ''end'' to exit'
34  do while (string(1:4).ne.'end ')
35  print *,' '
36  print *,'enter timestring: '
37  read(5, '(a)') string
38  if (string(1:4).ne.'end ') then
39  print *,string
40  call time_read(string, date)
41  call time_sprint(date,string)
42  print *,string
43  endif
44  enddo
45  stop
46  end
47 c
48 c ----- END OF ttime_read.f -----
char * time_sprint(time_Ts Date)
Definition: ctime_sprint.c:39
program ttime_read
Definition: ttime_read.f:29
int time_read(time_Ts *Date, const char *String)
Definition: ctime_read.c:37