Commits

korenyushkin  committed 2b00cef

Changed getCodeModDate() and fs.getModDate() to return Date objects.

  • Participants
  • Parent commits 0f8debd

Comments (0)

Files changed (2)

   'exists',
   'isDir',
   'isFile',
-  'getModDate',
   'list',
   'createDir',
   'rename'
   });
 
 
+exports.getModDate = function () {
+  return new Date(_core.fs.getModDate.apply(_core.fs, arguments));
+};
+
+
 exports.remove = function (path) {
   if (exports.isDir(path)) {
     var children = exports.list(path);
 exports.PERMANENT = 4;
 
 
-['set', 'readCode', 'getCodeModDate', 'hash'].forEach(
+['set', 'readCode', 'hash'].forEach(
   function (name) { inner.publishFunction(name, _core, exports); });
 
 
+exports.getCodeModDate = function () {
+  return new Date(_core.getCodeModDate.apply(_core, arguments));
+};
+
+
 exports.construct = function (func, args) {
   return _core.construct.call(
     _core,