闹腾,一个简单的东西复杂化了,记录下吧: import datetime,time def get_1st_of_last_month(): """ 获取上个月第一天的日期,然后加21天就是22号的日期 :return: 返回日期 """ today=datetime.datetime.today( ...
分类:
编程语言 时间:
2016-06-09 06:20:19
阅读次数:
341
、查看表结构用desc desc emp; 2、空表dual,最常用的空表,如: select 2 * 4 from dual; select sysdate from dual; 3、双引号能保持格式 如:select sysdate “toDay 日 期” from dual; 4、|| 字符串 ...
分类:
数据库 时间:
2016-06-08 18:39:07
阅读次数:
272
time.sleep(4) #程序休眠4s import datetime print(datetime.date.today()) #返回格式:2016-06-07print(datetime.date.fromtimestamp(time.time()))print(datetime.datet ...
分类:
编程语言 时间:
2016-06-08 12:12:32
阅读次数:
178
Today I am going to explain how to create a ListView with EditText and why will we need a TextWatcher to implement the same. Before starting the topic ...
分类:
其他好文 时间:
2016-06-07 22:00:27
阅读次数:
346
字符串函数: 时间日期函数: SET DATEFIRST 1 SELECT @@DATEFIRST AS '1st Day', DATEPART(dw, GETDATE()) AS 'Today' SELECT GETDATE() 数据转换、函数转换: 练习:查看名字,生日 ...
分类:
数据库 时间:
2016-06-07 20:38:55
阅读次数:
200
#!/bin/bash
#Bymartin.liu
Today=`date+%Y%m%d`
BackupPath=/usr/local/mysql_backup
BackupLog=bak_$Today.log
BackupFile=$Today.tar.gz
DBUser=root
DBPassword=‘123456‘
DBHost=localhost
mkdir-p$BackupPath/$Today
innobackupex--user=$DBUser--password=$DBPassword-..
分类:
数据库 时间:
2016-06-07 11:22:12
阅读次数:
542
以下是我在網路上所收集到的關於informix 時間的sql函數用法,有在使用informix資料庫的人,可以參考看看囉! today,返回現在系統日期 current 返回現在日期含時間,相當於sql server中的getdate() DATE(VARCHAR(10)) 返回 DATE 類型 該 ...
分类:
其他好文 时间:
2016-06-06 12:00:49
阅读次数:
156
passage two In 1950, a young man would have found it much easier than it is today to get and keep a job in the auto industry. would have done 虚拟语气,表示对 ...
分类:
其他好文 时间:
2016-06-06 01:06:51
阅读次数:
875
今天看了一下Brian Harry大叔的博客,才发现2016年3月17日,是Team Foundation Server的10岁生日。
Today marks the 10th anniversary of the day we shipped the first version of TFS – TFS 2005. It doesn’t seem that long ago but w...
分类:
Web程序 时间:
2016-06-02 14:14:24
阅读次数:
281
当在函数中定义默认值时,值初始化只会进行一次,就是执行到def methodname时执行。看下面代码: 1 2 3 4 5 6 7 8 from datetime import datetime def test(t=datetime.today()): print t if __name__ = ...
分类:
编程语言 时间:
2016-06-01 09:13:38
阅读次数:
165