Mercurial > hg > octave-lyh
comparison scripts/time/ctime.m @ 1382:000325177d87
[project @ 1995-09-12 07:20:43 by jwe]
author | jwe |
---|---|
date | Tue, 12 Sep 1995 07:20:43 +0000 |
parents | 611d403c7f3d |
children | 5d29638dd524 |
comparison
equal
deleted
inserted
replaced
1381:4b01352e52d8 | 1382:000325177d87 |
---|---|
16 # along with Octave; see the file COPYING. If not, write to the Free | 16 # along with Octave; see the file COPYING. If not, write to the Free |
17 # Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 # Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 |
19 function retval = ctime (t) | 19 function retval = ctime (t) |
20 | 20 |
21 # usage: ctime (TMSTRUCT) | 21 # usage: ctime (TIME) |
22 | 22 |
23 if (nargin == 1) | 23 if (nargin == 1) |
24 retval = asctime (localtime (t)); | 24 retval = asctime (localtime (t)); |
25 else | 25 else |
26 usage ("ctime (TMSTRUCT)"); | 26 usage ("ctime (TIME)"); |
27 endif | 27 endif |
28 | 28 |
29 endfunction | 29 endfunction |