1 / 6
文档名称:

C 时间日期函数大全.doc

格式:doc   大小:20KB   页数:6页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

C 时间日期函数大全.doc

上传人:文库旗舰店 2019/9/14 文件大小:20 KB

下载得到文件列表

C 时间日期函数大全.doc

相关文档

文档介绍

文档介绍:--=();取当前年月日时分秒currentTime=;取当前年int年=;取当前月int月=;取当前日int日=;取当前时int时=;取当前分int分=;取当前秒int秒=;取当前毫秒int毫秒=;(变量可用中文)取中文日期显示——年月日时分stringstrY=("f");//不显示秒取中文日期显示_年月stringstrYM=("y");取中文日期显示_月日stringstrMD=("m");取当前年月日,格式为:2003-9-23stringstrYMD=("d");取当前时分,格式为:14:24stringstrT=("t");();//();//只显示日期xxxx年xx月xx日,();//只显示日期xxxx-xx-xx一个是短日期//();//(-1).ToShortDateString();//(1).ToShortDateString();//本周(注意这里的每一周是从周日始至周六止)(((0-()))).ToShortDateString();(((6-()))).ToShortDateString();//上周,(((0-()))-7).ToShortDateString();(((6-()))-7).ToShortDateString();//(((0-(DateTime