File: fdate.c

package info (click to toggle)
mopac7 1.15-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,752 kB
  • sloc: fortran: 35,321; sh: 9,039; ansic: 428; makefile: 82
file content (31 lines) | stat: -rw-r--r-- 571 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*

NAME
     fdate - return date and time in an	ASCII string

SYNOPSIS
     subroutine	fdate(string)
     character*24 string

DESCRIPTION
     Fdate returns the current date and	time as	a 24 character string in the
     format described under ctime(3).  Neither `newline' nor NULL will be
     included.

LAST MODIFIACTION
     June 21, 1995, Istvan Cserny (cserny@atomki.hu)
*/

#include "mopac7f2c.h"

#include <time.h>
#include <string.h>

void fdate_(char *cht, ftnlen cht_len)
{
    static time_t t;
    time(&t);
    s_copy(cht,ctime(&t),24L,24L);
    return;
}