Skip to content

Instantly share code, notes, and snippets.

View iameli's full-sized avatar
💭
Beep boop

Eli Mallon iameli

💭
Beep boop
View GitHub Profile
@iameli
iameli / timestamp.js
Created May 4, 2016 03:21 — forked from hurjas/timestamp.js
Print out a nicely formatted timestamp in JavaScript.
/**
* Return a timestamp with the format "m/d/yy h:MM:ss TT"
* @type {Date}
*/
function timeStamp() {
// Create a date object with the current time
var now = new Date();
// Create an array with the current month, day and time