
js.prompto.literal.DateTimeLiteral.js Maven / Gradle / Ivy
var Literal = require("./Literal").Literal;
var DateTimeType = require("../type/DateTimeType").DateTimeType;
var DateTime = require("../value/DateTime").DateTime;
function DateTimeLiteral(text) {
Literal.call(this, text, DateTime.Parse(text.substring(1,text.length-1)));
return this;
}
DateTimeLiteral.prototype = Object.create(Literal.prototype);
DateTimeLiteral.prototype.constructor = DateTimeLiteral;
DateTimeLiteral.prototype.check = function(context) {
return DateTimeType.instance;
};
exports.DateTimeLiteral = DateTimeLiteral;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy