summaryrefslogtreecommitdiff
path: root/modules/time/macros/clock.sci
diff options
context:
space:
mode:
Diffstat (limited to 'modules/time/macros/clock.sci')
-rwxr-xr-xmodules/time/macros/clock.sci16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/time/macros/clock.sci b/modules/time/macros/clock.sci
new file mode 100755
index 000000000..7e21bdfa4
--- /dev/null
+++ b/modules/time/macros/clock.sci
@@ -0,0 +1,16 @@
+//------------------------------------------------------------------------
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) INRIA - Pierre MARECHAL
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+// Return the current date and time as serial number
+//------------------------------------------------------------------------
+
+function t=clock()
+ t=datevec(datenum());
+endfunction