先查看系统时区date -R如果不是伟大的+8区cp
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime覆盖吧,无需重启
分类:
其他好文 时间:
2014-05-12 12:30:08
阅读次数:
274
using System;using
System.Collections.Generic;using System.Linq;using System.Text;namespace
ConsoleApplication1{ class Program { static void Main(stri...
分类:
其他好文 时间:
2014-05-12 11:46:04
阅读次数:
215
1.宏定义.常量定义#define MATH_PI 3.14void defineH() { //
宏在编译阶段就把宏对应的常量给替换了,所以很快; printf("%f", MATH_PI);}.方法定义//
定义宏方法,宏方法没有具体的返回类型;当多行的时候,在后面添加一个反斜杠;#...
分类:
编程语言 时间:
2014-05-12 11:00:51
阅读次数:
341
using System.Security.Cryptography; //用的类 /// ///
DES加密/解密类。 /// public class DESEncrypt { public DESEncrypt() { ...
分类:
其他好文 时间:
2014-05-12 10:38:19
阅读次数:
235
1、用MySQLDriverCS连接MySQL数据库先下载和安装MySQLDriverCS,在安装文件夹下面找到MySQLDriver.dll,然后将MySQLDriver.dll添加引用到项目中。
using System; using System.Collections.Gen...
分类:
数据库 时间:
2014-05-10 19:12:23
阅读次数:
453
关于ID生成注:today()和now()是date类型,如需转换,可用datetime(today(())和datetime(now())一般用:SELECTsysdateINTO
:ldt_sysDateTime FROMDUAL获取时间。//获取的是服务器时间,防止本机时间错误ls_Curre...
分类:
其他好文 时间:
2014-05-10 18:46:30
阅读次数:
388
datetime dtsetnull(dt)dwo.object.date[1]=dt
分类:
其他好文 时间:
2014-05-10 10:51:48
阅读次数:
202
System.Threading.Tasks.Parallel是能够以并行的方式迭代数据集合(实现了IEnumerable的对象),它主要提供2个方法:For()和ForEach()
事例:
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Net.Consol...
分类:
其他好文 时间:
2014-05-10 08:59:10
阅读次数:
302
using System;using
System.Drawing;//HttpUtility.UrlEncode/// ///Curve 的摘要说明/// public class Curve{
public Curve() { // //TODO: 在此处...
分类:
Web程序 时间:
2014-05-10 07:36:33
阅读次数:
491
using System;using System.Data;using
System.Text;using System.Collections.Generic;using System.Reflection;using
System.Data.Common;using System.Collec...
分类:
Web程序 时间:
2014-05-10 07:27:45
阅读次数:
474