summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-03-04 00:07:13 +0800
committerGitHub <noreply@github.com>2020-03-04 00:07:13 +0800
commitcb797540684d82fdb0fab111d0efce2977b24bf3 (patch)
tree8c96d852ebe67c39e7145d5129c793e83afc4db8 /errors.go
parent1e3c85024d3bbc650c2f6a85fb075804af74720b (diff)
parent83eedce70de7a1ddeb3a4446f86b13bc6ff0b5ec (diff)
Merge pull request #592 from hexbioc/master
Exported function to convert excel date to time
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index 4560497..5576ecd 100644
--- a/errors.go
+++ b/errors.go
@@ -22,3 +22,7 @@ func newInvalidRowNumberError(row int) error {
func newInvalidCellNameError(cell string) error {
return fmt.Errorf("invalid cell name %q", cell)
}
+
+func newInvalidExcelDateError(dateValue float64) error {
+ return fmt.Errorf("invalid date value %f, negative values are not supported supported", dateValue)
+}