luxon时间操作示例代码
代码语言:html
所属分类:其他
代码描述:luxon时间操作示例代码,包括当前时间,解析时间字符、格式化,时间相加等操作。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> </head> <body> <h1>datetime with <a href="" target="new" id="package-link"></a></h1> <div> <h1>日期时间与 <a href="" target="new" id="package-link"></a></h1> <div> <h2>您的时间 = <code>现在</code></h2> <span id="today"> </span> </div> <div> <h2>从 <code>现在</code> 获取小时</h2> <span id="today-hour"> </span> </div> <div> <h2>在 <code>现在</code> 增加7天</h2> <span id="week-add"> </span> </div> <div> <h2><code>现在</code> 格式化为 "星期一,11月23日,下午5点"</h2> <span id="date-formatted"></span> </div> <div> <h2>Lord Howe Island 的日期和时间</h2>.........完整代码请登录后点击上方下载按钮下载查看
网友评论0