Mercurial > octave
comparison scripts/time/ctime.m @ 7411:83a8781b529d
[project @ 2008-01-22 21:52:25 by jwe]
author | jwe |
---|---|
date | Tue, 22 Jan 2008 21:52:26 +0000 |
parents | a1dbe9d80eee |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
7410:8a3b2ccc4e11 | 7411:83a8781b529d |
---|---|
41 else | 41 else |
42 print_usage (); | 42 print_usage (); |
43 endif | 43 endif |
44 | 44 |
45 endfunction | 45 endfunction |
46 | |
47 %!test | |
48 %! t = time (); | |
49 %! assert(strcmp (asctime (localtime (t)), ctime (t))); | |
50 | |
51 %!error ctime (); | |
52 | |
53 %!error ctime (1, 2); | |
54 |