github.com/goravel/framework@v1.13.9/support/carbon/constants.go (about) 1 package carbon 2 3 import ( 4 stdtime "time" 5 6 "github.com/golang-module/carbon/v2" 7 ) 8 9 type Carbon = carbon.Carbon 10 11 // timezone constants 12 // 时区常量 13 const ( 14 Local = carbon.Local // 本地时间 15 UTC = carbon.UTC // 世界协调时间 16 GMT = carbon.GMT // 格林尼治标准时间 17 EET = carbon.EET // 欧洲东部标准时间 18 WET = carbon.WET // 欧洲西部标准时间 19 CET = carbon.CET // 欧洲中部标准时间 20 EST = carbon.EST // 美国东部标准时间 21 MST = carbon.MST // 美国山地标准时间 22 23 Cuba = carbon.Cuba // 古巴 24 Egypt = carbon.Egypt // 埃及 25 Eire = carbon.Eire // 爱尔兰 26 Greenwich = carbon.Greenwich // 格林尼治 27 Iceland = carbon.Iceland // 冰岛 28 Iran = carbon.Iran // 伊朗 29 Israel = carbon.Israel // 以色列 30 Jamaica = carbon.Jamaica // 牙买加 31 Japan = carbon.Japan // 日本 32 Libya = carbon.Libya // 利比亚 33 Poland = carbon.Poland // 波兰 34 Portugal = carbon.Portugal // 葡萄牙 35 PRC = carbon.PRC // 中国 36 Singapore = carbon.Singapore // 新加坡 37 Turkey = carbon.Turkey // 土耳其 38 39 Shanghai = carbon.Shanghai // 上海 40 Chongqing = carbon.Chongqing // 重庆 41 Harbin = carbon.Harbin // 哈尔滨 42 Urumqi = carbon.Urumqi // 乌鲁木齐 43 HongKong = carbon.HongKong // 香港 44 Macao = carbon.Macao // 澳门 45 Taipei = carbon.Taipei // 台北 46 Tokyo = carbon.Tokyo // 东京 47 Saigon = carbon.Saigon // 西贡 48 Seoul = carbon.Seoul // 首尔 49 Bangkok = carbon.Bangkok // 曼谷 50 Dubai = carbon.Dubai // 迪拜 51 NewYork = carbon.NewYork // 纽约 52 LosAngeles = carbon.LosAngeles // 洛杉矶 53 Chicago = carbon.Chicago // 芝加哥 54 Moscow = carbon.Moscow // 莫斯科 55 London = carbon.London // 伦敦 56 Berlin = carbon.Berlin // 柏林 57 Paris = carbon.Paris // 巴黎 58 Rome = carbon.Rome // 罗马 59 Sydney = carbon.Sydney // 悉尼 60 Melbourne = carbon.Melbourne // 墨尔本 61 Darwin = carbon.Darwin // 达尔文 62 ) 63 64 // month constants 65 // 月份常量 66 const ( 67 January = carbon.January // 一月 68 February = carbon.February // 二月 69 March = carbon.March // 三月 70 April = carbon.April // 四月 71 May = carbon.May // 五月 72 June = carbon.June // 六月 73 July = carbon.July // 七月 74 August = carbon.August // 八月 75 September = carbon.September // 九月 76 October = carbon.October // 十月 77 November = carbon.November // 十一月 78 December = carbon.December // 十二月 79 ) 80 81 // week constants 82 // 星期常量 83 const ( 84 Monday = carbon.Monday // 周一 85 Tuesday = carbon.Tuesday // 周二 86 Wednesday = carbon.Wednesday // 周三 87 Thursday = carbon.Thursday // 周四 88 Friday = carbon.Friday // 周五 89 Saturday = carbon.Saturday // 周六 90 Sunday = carbon.Sunday // 周日 91 ) 92 93 // number constants 94 // 数字常量 95 const ( 96 YearsPerMillennium = 1000 // 每千年1000年 97 YearsPerCentury = 100 // 每世纪100年 98 YearsPerDecade = 10 // 每十年10年 99 QuartersPerYear = 4 // 每年4个季度 100 MonthsPerYear = 12 // 每年12月 101 MonthsPerQuarter = 3 // 每季度3月 102 WeeksPerNormalYear = 52 // 每常规年52周 103 weeksPerLongYear = 53 // 每长年53周 104 WeeksPerMonth = 4 // 每月4周 105 DaysPerLeapYear = 366 // 每闰年366天 106 DaysPerNormalYear = 365 // 每常规年365天 107 DaysPerWeek = 7 // 每周7天 108 HoursPerWeek = 168 // 每周168小时 109 HoursPerDay = 24 // 每天24小时 110 MinutesPerDay = 1440 // 每天1440分钟 111 MinutesPerHour = 60 // 每小时60分钟 112 SecondsPerWeek = 604800 // 每周604800秒 113 SecondsPerDay = 86400 // 每天86400秒 114 SecondsPerHour = 3600 // 每小时3600秒 115 SecondsPerMinute = 60 // 每分钟60秒 116 ) 117 118 // layout constants 119 // 布局模板常量 120 const ( 121 ANSICLayout = stdtime.ANSIC 122 UnixDateLayout = stdtime.UnixDate 123 RubyDateLayout = stdtime.RubyDate 124 RFC822Layout = stdtime.RFC822 125 RFC822ZLayout = stdtime.RFC822Z 126 RFC850Layout = stdtime.RFC850 127 RFC1123Layout = stdtime.RFC1123 128 RFC1123ZLayout = stdtime.RFC1123Z 129 RssLayout = stdtime.RFC1123Z 130 KitchenLayout = stdtime.Kitchen 131 RFC2822Layout = stdtime.RFC1123Z 132 CookieLayout = carbon.CookieLayout 133 RFC3339Layout = carbon.RFC3339Layout 134 RFC3339MilliLayout = carbon.RFC3339MilliLayout 135 RFC3339MicroLayout = carbon.RFC3339MicroLayout 136 RFC3339NanoLayout = carbon.RFC3339NanoLayout 137 ISO8601Layout = carbon.ISO8601Layout 138 ISO8601MilliLayout = carbon.ISO8601MilliLayout 139 ISO8601MicroLayout = carbon.ISO8601MicroLayout 140 ISO8601NanoLayout = carbon.ISO8601NanoLayout 141 RFC1036Layout = carbon.RFC1036Layout 142 RFC7231Layout = carbon.RFC7231Layout 143 DayDateTimeLayout = carbon.DayDateTimeLayout 144 DateTimeLayout = carbon.DateTimeLayout 145 DateTimeMilliLayout = carbon.DateTimeMilliLayout 146 DateTimeMicroLayout = carbon.DateTimeMicroLayout 147 DateTimeNanoLayout = carbon.DateTimeNanoLayout 148 ShortDateTimeLayout = carbon.ShortDateTimeLayout 149 ShortDateTimeMilliLayout = carbon.ShortDateTimeMilliLayout 150 ShortDateTimeMicroLayout = carbon.ShortDateTimeMicroLayout 151 ShortDateTimeNanoLayout = carbon.ShortDateTimeNanoLayout 152 DateLayout = carbon.DateLayout 153 DateMilliLayout = carbon.DateMilliLayout 154 DateMicroLayout = carbon.DateMicroLayout 155 DateNanoLayout = carbon.DateNanoLayout 156 ShortDateLayout = carbon.ShortDateLayout 157 ShortDateMilliLayout = carbon.ShortDateMilliLayout 158 ShortDateMicroLayout = carbon.ShortDateMicroLayout 159 ShortDateNanoLayout = carbon.ShortDateNanoLayout 160 TimeLayout = carbon.TimeLayout 161 TimeMilliLayout = carbon.TimeMilliLayout 162 TimeMicroLayout = carbon.TimeMicroLayout 163 TimeNanoLayout = carbon.TimeNanoLayout 164 ShortTimeLayout = carbon.ShortTimeLayout 165 ShortTimeMilliLayout = carbon.ShortTimeMilliLayout 166 ShortTimeMicroLayout = carbon.ShortTimeMicroLayout 167 ShortTimeNanoLayout = carbon.ShortTimeNanoLayout 168 )