Documentation ¶
Overview ¶
* Copyright 2020-2021 the original author(https://github.com/wj596) * * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * </p>
* Copyright 2020-2021 the original author(https://github.com/wj596) * * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * </p>
Index ¶
- Constants
- func ConvertGoFormat(format string) string
- func DefaultLayout(time time.Time) string
- func FromDefaultLayout(str string) time.Time
- func FutureDayDate(futureDay int) time.Time
- func Layout(date time.Time, layout string) string
- func MonthStartDayDate() time.Time
- func NowFormatted() string
- func NowLayout(layout string) string
- func NowMillisecond() int64
- func PastDayDate(pastDay int) time.Time
- func WeekStartDayDate() time.Time
Constants ¶
const ( // 日期格式 DayFormatter = "2006-01-02" // 日期时间格式--分 DayTimeMinuteFormatter = "2006-01-02 15:04" // 日期时间格式--秒 DayTimeSecondFormatter = "2006-01-02 15:04:05" // 日期时间格式--毫秒 DayTimeMillisecondFormatter = "2006-01-02 15:04:05.sss" // 时间格式--秒 TimeSecondFormatter = "15:04:05" )
const ( HHT = "03" HH = "15" MM = "01" SS = "05" Z = "MST" ZZZ = "MST" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.