User:Elominius/ISO8601 file name.js

/* This code snippet generates time stamps for file names. Colons are replaced with dashes because colons are considered invalid characters in file names in some file systems and in some non-Linux operating systems. For backwards compatibility, replaceAll is not used. */ function ISO8601_file_name { return new Date.toISOString.replace(":","-").replace(":","-"); }