Code reorganization
[vchess.git] / client / src / utils / datetime.js
similarity index 82%
rename from client/client_OLD/javascripts/utils/datetime.js
rename to client/src/utils/datetime.js
index 4f96518..3075bff 100644 (file)
@@ -3,12 +3,12 @@ function zeroPad(x)
        return (x<10 ? "0" : "") + x;
 }
 
-function getDate(d)
+export function getDate(d)
 {
        return d.getFullYear() + '-' + zeroPad(d.getMonth()+1) + '-' + zeroPad(d.getDate());
 }
 
-function getTime(d)
+export function getTime(d)
 {
        return zeroPad(d.getHours()) + ":" + zeroPad(d.getMinutes()) + ":" +
                zeroPad(d.getSeconds());