MCPcopy
hub / github.com/sequelize/sequelize / parse

Method parse

lib/dialects/db2/data-types.js:207–216  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

205 return date.format('YYYY-MM-DD HH:mm:ss');
206 }
207 static parse(value) {
208 if (typeof value !== 'string') {
209 value = value.string();
210 }
211 if (value === null) {
212 return value;
213 }
214 value = new Date(moment.utc(value));
215 return value;
216 }
217 }
218
219 class DATEONLY extends BaseTypes.DATEONLY {

Callers 6

constructorMethod · 0.45
hstore.test.jsFile · 0.45
range.test.jsFile · 0.45
to-json.test.jsFile · 0.45
getFunction · 0.45

Calls

no outgoing calls

Tested by 1

getFunction · 0.36