Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#6109 from bluong/momentLongDate
Browse files Browse the repository at this point in the history
Moment long date
  • Loading branch information
vvakame committed Oct 21, 2015
2 parents cd8f129 + 5e056e6 commit 393c201
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions moment/moment-external-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ moment.locale('en', {
weekdaysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
weekdaysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
longDateFormat: {
LTS: "h:mm:ss A",
LT: "h:mm A",
L: "MM/DD/YYYY",
LL: "MMMM D YYYY",
Expand Down Expand Up @@ -376,6 +377,7 @@ moment.locale('en', {

moment.locale('en', {
longDateFormat : {
LTS: "h:mm:ss A",
LT: "h:mm A",
L: "MM/DD/YYYY",
l: "M/D/YYYY",
Expand All @@ -390,6 +392,7 @@ moment.locale('en', {

moment.locale('en', {
longDateFormat : {
LTS: "h:mm:ss A",
LT: "h:mm A",
L: "MM/DD/YYYY",
LL: "MMMM Do YYYY",
Expand Down
4 changes: 3 additions & 1 deletion moment/moment-node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ declare module moment {
month?: number;
/** Month */
M?: number;

/** Week */
weeks?: number;
/** Week */
Expand Down Expand Up @@ -346,11 +346,13 @@ declare module moment {
LLL: string;
LLLL: string;
LT: string;
LTS: string;
l?: string;
ll?: string;
lll?: string;
llll?: string;
lt?: string;
lts?: string;
}

interface MomentRelativeTime {
Expand Down
3 changes: 3 additions & 0 deletions moment/moment-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ moment.locale('en', {
weekdaysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
weekdaysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
longDateFormat: {
LTS: "h:mm:ss A",
LT: "h:mm A",
L: "MM/DD/YYYY",
LL: "MMMM D YYYY",
Expand Down Expand Up @@ -387,6 +388,7 @@ moment.locale('en', {

moment.locale('en', {
longDateFormat : {
LTS: "h:mm:ss A",
LT: "h:mm A",
L: "MM/DD/YYYY",
l: "M/D/YYYY",
Expand All @@ -401,6 +403,7 @@ moment.locale('en', {

moment.locale('en', {
longDateFormat : {
LTS: "h:mm A",
LT: "h:mm A",
L: "MM/DD/YYYY",
LL: "MMMM Do YYYY",
Expand Down

0 comments on commit 393c201

Please sign in to comment.