发布于 2012-09-07 12:31:08
10楼
The following table shows the contents of the bytes that contain the date and time information for the example Thursday, December 25, 1993, at 8:12 and 34,567 seconds in the morning.
Byte
Contents
Example
0
Year
B#16#93
1
Month
B#16#12
2
Day
B#16#25
3
Hour
B#16#08
4
Minute
B#16#12
5
Second
B#16#34
6
Two most significant digits of MSEC
B#16#56
7
(4MSB)
Two least significant digits of MSEC
B#16#7
7
(4LSB)
Day of week
1 = Sunday
2 = Monday
...
7 = Saturday
B#16#_5
按照这个说明你只要建立一个8字节date类型的数据然后直接给每一个字节赋值。
活到老,学到老!为了生活学习吧!