We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bc9fc3 commit 7230f93Copy full SHA for 7230f93
helper.go
@@ -103,7 +103,8 @@ func format2layout(format string) string {
103
return buffer.String()
104
}
105
106
-// 将 时区字符串 解析成 time.Location 对象
+// parses a timezone string as a time.Location instance.
107
+// 将 时区字符串 解析成 time.Location 实例
108
func parseTimezone(timezone string) (*Location, error) {
109
if timezone == "" {
110
return nil, ErrEmptyTimezone()
@@ -116,7 +117,7 @@ func parseTimezone(timezone string) (*Location, error) {
116
117
118
119
// parses a duration string as a time.Duration instance.
-// 将 时长字符串 解析成 time.Duration 对象
120
+// 将 时长字符串 解析成 time.Duration 实例
121
func parseDuration(duration string) (Duration, error) {
122
if duration == "" {
123
return 0, ErrEmptyDuration()
0 commit comments