/**
* This class represents NDNTime Objects
* Copyright (C) 2013-2015 Regents of the University of California.
* @author: Meki Cheraoui
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* A copy of the GNU Lesser General Public License is in the file COPYING.
*/
var LOG = require('../log.js').Log.LOG;
/**
* @deprecated This is only used for NDNx support which is deprecated.
*/
var NDNTime = function NDNTime(input)
{
this.NANOS_MAX = 999877929;
if (typeof input =='number')
this.msec = input;
else {
if (LOG > 1) console.log('UNRECOGNIZED TYPE FOR TIME');
}
};
exports.NDNTime = NDNTime;
NDNTime.prototype.getJavascriptDate = function()
{
var d = new Date();
d.setTime(this.msec);
return d
};