Skip to content

Commit

Permalink
style: translated chinese comments (#265)
Browse files Browse the repository at this point in the history
* Translated chinese comments
  • Loading branch information
Shinigami authored and thedaviddias committed Sep 3, 2018
1 parent 8bb7942 commit 5126995
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ module.exports = function(grunt) {
date = new Date();
}
var map = {
"M": date.getMonth() + 1, //月份
"d": date.getDate(), //
"h": date.getHours(), //小时
"m": date.getMinutes(), //
"s": date.getSeconds(), //
"q": Math.floor((date.getMonth() + 3) / 3), //季度
"S": date.getMilliseconds() //毫秒
"M": date.getMonth() + 1, // Monat
"d": date.getDate(), // Tag
"h": date.getHours(), // Hour
"m": date.getMinutes(), // Minute
"s": date.getSeconds(), // Second
"q": Math.floor((date.getMonth() + 3) / 3), // Quarter
"S": date.getMilliseconds() // Millisecond
};
format = format.replace(/([yMdhmsqS])(\1)*/g, function(all, t){
var v = map[t];
Expand Down

0 comments on commit 5126995

Please sign in to comment.