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

Method parse

src/dialects/db2/data-types.js:211–220  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

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

Callers 6

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

Calls

no outgoing calls

Tested by 1

getFunction · 0.36