/home/techb158/workloadmatch.com/workloadmatch.com/bower_components/moment/src/lib/moment
NameSizeModeActions
add-subtract.js17790644editdlrm
calendar.js10600644editdlrm
clone.js990644editdlrm
compare.js21350644editdlrm
constructor.js20750644editdlrm
creation-data.js1910644editdlrm
diff.js19880644editdlrm
format.js18420644editdlrm
from.js5860644editdlrm
get-set.js14290644editdlrm
locale.js9480644editdlrm
min-max.js18520644editdlrm
moment.js6100644editdlrm
now.js840644editdlrm
prototype.js54700644editdlrm
start-end-of.js14940644editdlrm
to-type.js7780644editdlrm
to.js5800644editdlrm
valid.js3670644editdlrm
Edit: /home/techb158/workloadmatch.com/workloadmatch.com/bower_components/moment/src/lib/moment/format.js (1842B)
import { formatMoment } from '../format/format'; import { hooks } from '../utils/hooks'; import isFunction from '../utils/is-function'; hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; export function toString () { return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); } export function toISOString() { if (!this.isValid()) { return null; } var m = this.clone().utc(); if (m.year() < 0 || m.year() > 9999) { return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); } if (isFunction(Date.prototype.toISOString)) { // native implementation is ~50x faster, use it when we can return this.toDate().toISOString(); } return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); } /** * Return a human readable representation of a moment that can * also be evaluated to get a new moment which is the same * * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects */ export function inspect () { if (!this.isValid()) { return 'moment.invalid(/* ' + this._i + ' */)'; } var func = 'moment'; var zone = ''; if (!this.isLocal()) { func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; zone = 'Z'; } var prefix = '[' + func + '("]'; var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY'; var datetime = '-MM-DD[T]HH:mm:ss.SSS'; var suffix = zone + '[")]'; return this.format(prefix + year + datetime + suffix); } export function format (inputString) { if (!inputString) { inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat; } var output = formatMoment(this, inputString); return this.localeData().postformat(output); }