Skip to content

Instantly share code, notes, and snippets.

View qqgwq's full-sized avatar

gby qqgwq

View GitHub Profile
@qqgwq
qqgwq / dateCN.js
Created May 7, 2020 10:57 — forked from lvwzhen/dateCN.js
获取当前公历、农历、节气
// JavaScript Document
function RunGLNL() {
var today = new Date();
var d = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
var DDDD = today.getFullYear() + "年" + [today.getMonth() + 1] + "月" + today.getDate() + "日";
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";