rudimentary java library beginning. cleaned up scripts quite
[feisty_meow.git] / scripts / core / functions.sh
index 55a77d193ba62c7775272913c069040427c79a54..31e94a044a497525ca29016a84e3cea75b4c6e93 100644 (file)
@@ -6,6 +6,12 @@ if [ ! -z "$SHELL_DEBUG" ]; then
   echo function definitions begin...
 fi
 
+# a handy little method that can be used for date strings.  it was getting
+# really tiresome how many different ways the script did the date formatting.
+function date_stringer() {
+  date +"%Y_%m_%e_%H%M_%S" | tr -d '/\n/'
+}
+
 # makes a directory of the name specified and then tries to change the
 # current directory to that directory.
 function mcd {