Skip to content

Commit

Permalink
Add details and transitions inspector views to ZTimezone
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvc committed Sep 22, 2023
1 parent b49f367 commit 8633921
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions repository/ZTimestamp-GT/ZTimezone.extension.st
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
]

0 comments on commit 8633921

Please sign in to comment.