File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11name = " TimeZones"
22uuid = " f269a46b-ccf7-5d73-abea-4c690281aa53"
33authors = [" Curtis Vogt <curtis.vogt@gmail.com>" ]
4- version = " 1.6.0 "
4+ version = " 1.6.1 "
55
66[deps ]
77Dates = " ade2ca70-3891-5945-98fb-dc099432e06a"
88Downloads = " f43a241f-c20a-4ad4-852c-f6b1247861c6"
99Future = " 9fa8497b-333b-5362-9e8d-4d0656e87820"
10+ InlineStrings = " 842dd82b-1e85-43dc-bf29-5d0ee9dffc48"
1011LazyArtifacts = " 4af54fe1-eca0-43a8-85a7-787d91b784e3"
1112Mocking = " 78c3b35d-d492-501b-9361-3d52fe80e533"
1213Pkg = " 44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
@@ -17,6 +18,7 @@ Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
1718
1819[compat ]
1920Downloads = " 1"
21+ InlineStrings = " 1.0"
2022Mocking = " 0.7"
2123RecipesBase = " 0.7, 0.8, 1"
2224julia = " 1.3"
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ using Printf
55using Serialization
66using RecipesBase: RecipesBase, @recipe
77using Unicode
8+ using InlineStrings: InlineString15
89
910import Dates: TimeZone, UTC
1011
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const FIXED_TIME_ZONE_REGEX = r"""
3030A `TimeZone` with a constant offset for all of time.
3131"""
3232struct FixedTimeZone <: TimeZone
33- name:: String
33+ name:: InlineString15
3434 offset:: UTCOffset
3535end
3636
9595
9696name(tz:: FixedTimeZone ) = tz. name
9797rename(tz:: FixedTimeZone , name:: AbstractString ) = FixedTimeZone(name, tz. offset)
98+
Original file line number Diff line number Diff line change 11@testset " FixedTimeZone" begin
2+ @test isbitstype(FixedTimeZone)
3+
24 @test FixedTimeZone(" 0123" ) == FixedTimeZone(" UTC+01:23" , 4980 )
35 @test FixedTimeZone(" +0123" ) == FixedTimeZone(" UTC+01:23" , 4980 )
46 @test FixedTimeZone(" -0123" ) == FixedTimeZone(" UTC-01:23" , - 4980 )
You can’t perform that action at this time.
0 commit comments