Skip to content

Instantly share code, notes, and snippets.

@entyo
Created October 9, 2015 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save entyo/2f9efe375ab9ee67d2a9 to your computer and use it in GitHub Desktop.
Save entyo/2f9efe375ab9ee67d2a9 to your computer and use it in GitHub Desktop.
時計的な
$(function() {
setInterval(function() {
var d = new Date();
var formatDate =
d.getFullYear() + '年' +
(d.getMonth() + 1) + '月' +
d.getDate() + '日 ' +
d.getHours() + '時' +
d.getMinutes() + '分';
$("#time").text(formatDate);
}, 1000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment