2012年6月14日 星期四

Date and Time Formats (ISO 8601)

沒什麼好說的,就是日期時間的格式規範,以降低軟體間的溝通障礙

Different standards may need different levels of granularity in the date and time, so this profile defines six levels. Standards that reference this profile should specify one or more of these granularities. If a given standard allows more than one granularity, it should specify the meaning of the dates and times with reduced precision, for example, the result of comparing two dates with different precisions.

The formats are as follows. Exactly the components shown here must be present, with exactly this punctuation. Note that the "T" appears literally in the string, to indicate the beginning of the time element, as specified in ISO 8601.

Year:
YYYY (eg 1997)
Year and month:
YYYY-MM (eg 1997-07)
Complete date:
YYYY-MM-DD (eg 1997-07-16)
Complete date plus hours and minutes:
YYYY-MM-DDThh:mmTZD (eg 1997-07-16T19:20+01:00)
Complete date plus hours, minutes and seconds:
YYYY-MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00)
Complete date plus hours, minutes, seconds and a decimal fraction of a
second
YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)
where:

YYYY = four-digit year
MM   = two-digit month (01=January, etc.)
DD   = two-digit day of month (01 through 31)
hh   = two digits of hour (00 through 23) (am/pm NOT allowed)
mm   = two digits of minute (00 through 59)
ss   = two digits of second (00 through 59)
s    = one or more digits representing a decimal fraction of a second
TZD  = time zone designator (Z or +hh:mm or -hh:mm)
This profile does not specify how many digits may be used to represent the decimal fraction of a second. An adopting standard that permits fractions of a second must specify both the minimum number of digits (a number greater than or equal to one) and the maximum number of digits (the maximum may be stated to be "unlimited").

This profile defines two ways of handling time zone offsets:

Times are expressed in UTC (Coordinated Universal Time), with a special UTC designator ("Z").
Times are expressed in local time, together with a time zone offset in hours and minutes. A time zone offset of "+hh:mm" indicates that the date/time uses a local time zone which is "hh" hours and "mm" minutes ahead of UTC. A time zone offset of "-hh:mm" indicates that the date/time uses a local time zone which is "hh" hours and "mm" minutes behind UTC.
A standard referencing this profile should permit one or both of these ways of handling time zone offsets.

2012年6月10日 星期日

在ASP.NET (使用VB語言) 修改 CKEdtior

 

因為官方提供的是教學文件主要是java語言寫的,雖然有教到在asp.net上的使用方法,但偏偏又是 C# 不是 VB ,對我來說很是吃力… 所以以「在ASP.NET (使用VB語言) 修改 CKEdtior 」這類型的文章在網路上是很少見的,俗話說「萬法歸一」,我想對程式設計的高手來說…也許從開源碼更可以學習到 ckeditor 的精綷,這篇文章教學不敢,心得分享足矣…

image

ASP.NET 上使用免費的文字編輯器CKEditor

網站上若要提供文字輸入至資料庫的介面,CKEditor 可以說在功能、畫面上都能兼顧,最讓人稱讚的當然是他是免費且開放源始碼了。

image

CKEditor 早期叫做 FCKeditor ,是很多程式設計者在開發文字輸入介面時會參考的範本,甚至很多網站乾脆直接使用,像dnowba 這樣腦袋不夠靈光的人,想自已開發這樣的文字輸入編輯器是不大可能的,所以還是直接使用了…

dnowba 用 Visual Studio 寫 .NET 的網站一陣子了,早期要在 Visual Studio 上使用這個文字編輯器,其實是要在網頁上動很多手腳的,因為 FCKediotr 本來就不是針對開發平台來做的,那個時候要找參考的文章,大多是教 asp 網頁上怎麼嵌入FCKediotr 。不過後來這些熱心的coding們把它做成一個專門在 Visual Studio 開發平台上的控制項,在ASP.NET上要使用就相對簡單多了。

但是不知道是不是簡單過了頭,顯少看到網路上有STEP BY STEP的教學。
但DNOWBA覺得還是有一些眉角可以注意的,且用這篇紀錄一下自已使用的過程吧。
(注意:此篇非常針對asp.net開發環境裡頭調適ckeditor,官方的教學文件比較通用性,從官方文件我們可以讀個大概知道「可以改些什麼?」)

2012年5月22日 星期二

一點都不想重來之投影機安裝篇

這篇文章主要是分享安裝投影機的過程
在新家裝潢過程裡
其實我本來是打算請專業人士來安裝的
不過後來訪價的結果
請「專業」的師傅來安裝動輒4、5千元
專業的當然有專業的好處
所謂專業的師傅就是受過原廠訓練過的師傅
本身不一定專門只做投影機工程
但是接受過相關的訓練
從投影機線材、投影機吊架、裝潢壓條都會幫你準備好
可以一勞永逸,不過因為預算真的不夠
請外面一般的師傅來裝,不如我自已來吧
下圖是安裝完後看海賊王的實際效果,感覺還不錯
這邊分享給大家做個參考

image

2012年5月21日 星期一

一點都不想重來之系統傢俱自已DIY組裝

關於家中裝潢,近日大柢上塵埃落定了
廚房、二個孩子的房間、主臥室、餐桌、裝投影機…

在家中可以正常的煮飯、洗衣、洗澡、睡覺…食衣住行上都沒什麼問題
想喘一口氣,想玩玩DIABLO III ,想回鍋魔獸世界
但是又開始要忙一些非關裝潢的其他事了

關於家裡美化的部分心裡自然有個想法
先打住了…
呵呵,年紀愈大綁手綁腳的事情就愈多
發文章的進度也是落後不少,很想寫…但是能寫的時間真所剩無幾

有人問道有關系統傢俱的事情
關於收納的這篇文章本來也是預訂要發的
只是有其他事耽擱
不過我想如果有人發問的話
那能回答的我也義不容辭
這篇文章算是提前催生了

若是不排斥系統家具那種四四方方,沒有裝飾的收納系統櫃
不妨和dnowba一樣找間可DIY的系統傢俱
節省一些些開支之餘
順道編織一個屬於自已家裡的共同回憶

image

Related Posts Plugin for WordPress, Blogger...
// Dnow Function