Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
7cb6b678
Commit
7cb6b678
authored
Oct 16, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new convert code found error
R=r OCL=17327 CL=17327
parent
32b84d5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
zoneinfo.go
src/lib/time/zoneinfo.go
+4
-4
No files found.
src/lib/time/zoneinfo.go
View file @
7cb6b678
...
...
@@ -80,7 +80,7 @@ type Zonetime struct {
}
func
ParseZoneinfo
(
bytes
*
[]
byte
)
(
zt
*
[]
Zonetime
,
err
*
os
.
Error
)
{
data1
:=
Data
(
bytes
)
;
data1
:=
Data
{
bytes
}
;
data
:=
&
data1
;
// 4-byte magic "TZif"
...
...
@@ -120,21 +120,21 @@ func ParseZoneinfo(bytes *[]byte) (zt *[]Zonetime, err *os.Error) {
}
// Transition times.
txtimes1
:=
Data
(
data
.
Read
(
n
[
NTime
]
*
4
))
;
txtimes1
:=
Data
{
data
.
Read
(
n
[
NTime
]
*
4
)}
;
txtimes
:=
&
txtimes1
;
// Time zone indices for transition times.
txzones
:=
data
.
Read
(
n
[
NTime
]);
// Zone info structures
zonedata1
:=
Data
(
data
.
Read
(
n
[
NZone
]
*
6
))
;
zonedata1
:=
Data
{
data
.
Read
(
n
[
NZone
]
*
6
)}
;
zonedata
:=
&
zonedata1
;
// Time zone abbreviations.
abbrev
:=
data
.
Read
(
n
[
NChar
]);
// Leap-second time pairs
leapdata1
:=
Data
(
data
.
Read
(
n
[
NLeap
]
*
8
))
;
leapdata1
:=
Data
{
data
.
Read
(
n
[
NLeap
]
*
8
)}
;
leapdata
:=
&
leapdata1
;
// Whether tx times associated with local time types
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment