摘要: 【VB】Format 格式化日期时间数字函数详解VB 中 Format 格式化日期时间、数字函数功能详解:VB 格式化日期时间:MsgBox Format$(Now, "c") '2006-5-25 14:56:05Format[$] (expr[,fmt])format 返回变体型format$ 强制返回为文本--------------------------------数字类型的格式化--------------------------------固定格式参数:General Number 普通数字,如可以用来去掉千位分隔号format$("100, 阅读全文
posted @ 2012-08-30 21:36 Asa.Zhu 阅读(32164) 评论(0) 推荐(0) 编辑
摘要: C++ 取得系统当前时间#include <time.h>//* 方法一time_t tt = time(NULL);//这句返回的只是一个时间cuotm* t= localtime(&tt);printf("%d-%02d-%02d %02d:%02d:%02d\n", t->tm_year + 1900,t->tm_mon + 1,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);//* 方法二SYSTEMTIME st = {0};GetLocalTime(&st);p 阅读全文
posted @ 2012-08-30 20:13 Asa.Zhu 阅读(55851) 评论(0) 推荐(0) 编辑