|
@ -39,3 +39,11 @@ func (self *DateTime) ToString() string { |
|
|
date := self.Restore() |
|
|
date := self.Restore() |
|
|
return date.Format(DateTimeOutFormat) |
|
|
return date.Format(DateTimeOutFormat) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (self *DateTime) String() string { |
|
|
|
|
|
if self == nil { |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
date := self.Restore() |
|
|
|
|
|
return date.Format(DateTimeOutFormat) |
|
|
|
|
|
} |