-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add details and transitions inspector views to ZTimezone
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Extension { #name : #ZTimezone } | ||
|
||
{ #category : #'*ZTimestamp-GT' } | ||
ZTimezone >> gtViewDetailsIn: composite [ | ||
<gtView> | ||
^ composite columnedList | ||
title: 'Details'; | ||
items: [ {('id' -> self id). | ||
('current offset' -> (self offsetForTimestamp: ZTimestamp now)). | ||
('current subzone' -> (self subzoneForTimestamp: ZTimestamp now)) } ]; | ||
column: 'Key' text: #key; | ||
column: 'Value' text: #value; | ||
send: #value | ||
] | ||
|
||
{ #category : #'*ZTimestamp-GT' } | ||
ZTimezone >> gtViewTransitionsIn: composite [ | ||
<gtView> | ||
^ composite columnedList | ||
title: 'Transitions'; | ||
items: [ self resolvedTransitions ]; | ||
column: 'Start' text: #key; | ||
column: 'Subzone' text: #value; | ||
send: #value | ||
] |