decord/source/1928_result2.js
2026-07-24 07:16:23 +00:00

44 lines
2.8 KiB
JavaScript

// Module ID: 1928
// Function ID: 21790
// Name: result2
// Dependencies: [1929]
// Module 1928 (result2)
import buildLocalizeFn from "buildLocalizeFn";
if (!buildLocalizeFn) {
let obj = { default: buildLocalizeFn };
} else {
obj = buildLocalizeFn;
}
obj = {
ordinalNumber(arg0, arg1) {
const NumberResult = Number(arg0);
const result = NumberResult % 100;
if (result > 20) {
const result1 = result % 10;
if (1 === result1) {
return NumberResult + "st";
} else if (2 === result1) {
return NumberResult + "nd";
} else if (3 === result1) {
return NumberResult + "rd";
}
}
return NumberResult + "th";
}
};
obj.era = obj.default({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" });
obj.quarter = obj.default({
values: { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] },
defaultWidth: "wide",
argumentCallback(arg0) {
return arg0 - 1;
}
});
obj.month = obj.default({ values: { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }, defaultWidth: "wide" });
obj.day = obj.default({ values: { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }, defaultWidth: "wide" });
obj.dayPeriod = obj.default({ values: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, defaultWidth: "wide", formattingValues: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, defaultFormattingWidth: "wide" });
export default obj;
export default exports.default;