Browse Source

修正了将时间导出到Excel文件中发生的错误

pull/154/head
allanwei 3 years ago
parent
commit
2b0d12a52d
3 changed files with 24 additions and 0 deletions
  1. +8
    -0
      grmi/Date.go
  2. +8
    -0
      grmi/DateTime.go
  3. +8
    -0
      grmi/Time.go

+ 8
- 0
grmi/Date.go View File

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

+ 8
- 0
grmi/DateTime.go View File

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

+ 8
- 0
grmi/Time.go View File

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

Loading…
Cancel
Save