aboutsummaryrefslogtreecommitdiff
path: root/GradeBook_lib.tcl
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2012-12-12 22:01:49 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2012-12-12 22:01:49 -0500
commitd98976ff6f8a8843032964b3404a8d4c72c51384 (patch)
treeae24f3cf0ec7225fe90a1a54a5188183a4fae75b /GradeBook_lib.tcl
parent21f333322247f3d545252cd0fc8353f0f2e7d358 (diff)
downloadGradeBook-d98976ff6f8a8843032964b3404a8d4c72c51384.tar.gz
GradeBook-d98976ff6f8a8843032964b3404a8d4c72c51384.zip
added time stamp proc
Diffstat (limited to 'GradeBook_lib.tcl')
-rwxr-xr-xGradeBook_lib.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl
index 68b74cc..3b5edfb 100755
--- a/GradeBook_lib.tcl
+++ b/GradeBook_lib.tcl
@@ -326,6 +326,10 @@ proc dbg {msg {category msg_level_critical}} {
}
}
+proc timestamp { } {
+ return [clock format [clock seconds] -format "%Y-%m-%dT%H:%M:%S"]
+}
+
proc ColName2SqlSafeForm {colname} {
set bad_symbols [list {\}} {\{} {\\} {\'} {\"} {\]} {\[} ]
foreach bs $bad_symbols {