|
|
@ -50,6 +50,9 @@ func (t Timestamp) Time() time.Time {
|
|
|
|
|
|
|
|
|
|
|
|
// Date 回傳日期字串
|
|
|
|
// Date 回傳日期字串
|
|
|
|
func (t Timestamp) Date() string {
|
|
|
|
func (t Timestamp) Date() string {
|
|
|
|
|
|
|
|
if t == 0 {
|
|
|
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
}
|
|
|
|
return time.
|
|
|
|
return time.
|
|
|
|
Unix(t.Int64(), 0).
|
|
|
|
Unix(t.Int64(), 0).
|
|
|
|
In(Local).
|
|
|
|
In(Local).
|
|
|
@ -58,6 +61,9 @@ func (t Timestamp) Date() string {
|
|
|
|
|
|
|
|
|
|
|
|
// Datetime 回傳時間字串
|
|
|
|
// Datetime 回傳時間字串
|
|
|
|
func (t Timestamp) Datetime() string {
|
|
|
|
func (t Timestamp) Datetime() string {
|
|
|
|
|
|
|
|
if t == 0 {
|
|
|
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
}
|
|
|
|
return time.
|
|
|
|
return time.
|
|
|
|
Unix(t.Int64(), 0).
|
|
|
|
Unix(t.Int64(), 0).
|
|
|
|
In(Local).
|
|
|
|
In(Local).
|
|
|
|