@blossm/datetime
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -12,2 +12,3 @@ const timestampFromDate = require("./src/timestamp_from_date"); | ||
const longDateStringFromTimestamp = require("./src/long_date_string_from_timestamp"); | ||
const longDateString = require("./src/long_date_string"); | ||
const weekdayDateStringFromTimestamp = require("./src/weekday_date_string_from_timestamp"); | ||
@@ -32,2 +33,3 @@ const componentsFromMoment = require("./src/components_from_moment"); | ||
longDateStringFromTimestamp, | ||
longDateString, | ||
weekdayDateStringFromTimestamp, | ||
@@ -34,0 +36,0 @@ componentsFromMoment, |
{ | ||
"name": "@blossm/datetime", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Date and time functionality.", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "064483398d911d10fb211fbd6bbd4e1ecadf870b" | ||
"gitHead": "bc2886fc2fe4bc82187e05fcc6a216f900c400d1" | ||
} |
const momentFromTimestamp = require("./moment_from_timestamp"); | ||
module.exports = (timestamp) => { | ||
const moment = momentFromTimestamp(timestamp); | ||
return moment.format("MMMM Do YYYY, h:mm:ss a"); | ||
}; | ||
module.exports = (timestamp) => | ||
momentFromTimestamp(timestamp).format("MMMM Do YYYY, h:mm:ss a"); |
15245
41
381