author | Claus Gittinger <cg@exept.de> |
Fri, 07 Sep 2001 13:14:21 +0200 | |
changeset 5982 | 2965b58b4258 |
parent 5873 | 1ed3dd2e1b17 |
child 6045 | c2b7455fcdfe |
permissions | -rw-r--r-- |
1 | 1 |
" |
5 | 2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
159 | 3 |
All Rights Reserved |
1 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
5390 | 13 |
"{ Package: 'stx:libbasic' }" |
14 |
||
275 | 15 |
AbstractTime subclass:#Time |
993
feaa62827c41
check for territory being #us (instead of #usa) when printing
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
16 |
instanceVariableNames:'timeEncoding' |
feaa62827c41
check for territory being #us (instead of #usa) when printing
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
17 |
classVariableNames:'' |
feaa62827c41
check for territory being #us (instead of #usa) when printing
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
18 |
poolDictionaries:'' |
feaa62827c41
check for territory being #us (instead of #usa) when printing
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
19 |
category:'Magnitude-General' |
1 | 20 |
! |
21 |
||
2706
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
22 |
!Time class methodsFor:'documentation'! |
88 | 23 |
|
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
159 | 27 |
All Rights Reserved |
88 | 28 |
|
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
40 |
Instances of time represent a particular time-of-day. |
|
409 | 41 |
Since they only store hours, minutes and seconds within a day, |
42 |
they cannot be used to compare times across midnight |
|
43 |
(i.e. they should not be used as timeStamps). |
|
1228 | 44 |
|
241 | 45 |
Use instances of AbsoluteTime (and read the comment there) to do this. |
46 |
||
47 |
Examples: |
|
1228 | 48 |
|t| |
241 | 49 |
|
1228 | 50 |
t := Time now. |
1422 | 51 |
Transcript showCR:t. |
241 | 52 |
|
53 |
||
1228 | 54 |
|t1 t2| |
241 | 55 |
|
1228 | 56 |
t1 := Time now. |
57 |
(Delay forSeconds:10) wait. |
|
58 |
t2 := Time now. |
|
59 |
t2 - t1 |
|
1295 | 60 |
|
61 |
[author:] |
|
62 |
Claus Gittinger |
|
63 |
||
64 |
[see also:] |
|
1302 | 65 |
Date AbsoluteTime AbstractTime OperatingSystem |
1295 | 66 |
Filename |
88 | 67 |
" |
68 |
! ! |
|
1 | 69 |
|
2706
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
70 |
!Time class methodsFor:'instance creation'! |
1 | 71 |
|
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
72 |
fromSeconds:secondsSinceMidnight |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
73 |
"return a new Time, which represents the number of seconds since midNight. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
74 |
Be careful, time wraps - if the number of seconds exceeds the number of seconds |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
75 |
in a day, a time relative to another days midnight is returned. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
76 |
(i.e. (Time fromSeconds:0) = (Time fromSeconds:24*3600)" |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
77 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
78 |
|s| |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
79 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
80 |
s := secondsSinceMidnight \\ (3600 * 24). |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
81 |
^ self |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
82 |
hours:(s // 3600) |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
83 |
minutes:((s \\ 3600) // 60) |
4883 | 84 |
seconds:((s \\ 3600) \\ 60) |
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
85 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
86 |
" |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
87 |
Time fromSeconds:0 |
4883 | 88 |
Time fromSeconds:3675 |
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
89 |
Time fromSeconds:36000 |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
90 |
Time fromSeconds:72000 |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
91 |
Time fromSeconds:96000 |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
92 |
" |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
93 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
94 |
"Modified: 8.10.1996 / 19:32:11 / cg" |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
95 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
96 |
|
4883 | 97 |
|
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
98 |
! |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
99 |
|
239 | 100 |
hour:h minutes:m seconds:s |
1228 | 101 |
"return an instance of Time representing the given time. |
4031 | 102 |
See also Time now / Date today / AbsoluteTime now. |
103 |
Obsolete: please use #hours:minutes:seconds:" |
|
239 | 104 |
|
5873 | 105 |
<resource:#obsolete> |
106 |
||
4031 | 107 |
self obsoleteMethodWarning:'use hours:minutes:seconds:'. |
108 |
||
109 |
^ self hours:h minutes:m seconds:s |
|
1 | 110 |
|
239 | 111 |
" |
4031 | 112 |
Time hours:2 minutes:33 seconds:0 |
113 |
Time hours:0 minutes:0 seconds:0 |
|
114 |
Time hours:24 minutes:0 seconds:0 |
|
115 |
Time hours23 minutes:59 seconds:59 |
|
116 |
" |
|
117 |
||
118 |
"Modified: 19.4.1996 / 15:32:40 / cg" |
|
119 |
! |
|
120 |
||
121 |
hours:h minutes:m seconds:s |
|
122 |
"return an instance of Time representing the given time. |
|
123 |
See also Time now / Date today / AbsoluteTime now." |
|
124 |
||
125 |
^ self basicNew setHours:h minutes:m seconds:s |
|
126 |
||
127 |
" |
|
128 |
Time hours:2 minutes:33 seconds:0 |
|
129 |
Time hours:0 minutes:0 seconds:0 |
|
130 |
Time hours:24 minutes:0 seconds:0 |
|
131 |
Time hours:23 minutes:59 seconds:59 |
|
95 | 132 |
" |
1228 | 133 |
|
134 |
"Modified: 19.4.1996 / 15:32:40 / cg" |
|
77 | 135 |
! |
136 |
||
569
7134eb78cf48
readFrom:onError: can now also read from a string
Claus Gittinger <cg@exept.de>
parents:
530
diff
changeset
|
137 |
readFrom:aStringOrStream onError:exceptionBlock |
241 | 138 |
"return a new Time, reading a printed representation from aStream. |
3481
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
139 |
If no am/pm follows the time, the string is interpreted as |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
140 |
either 24 hour format or being am." |
239 | 141 |
|
3995
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
142 |
|newTime| |
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
143 |
|
1701
80d13adb2e77
better errorHandling in readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
144 |
ErrorSignal handle:[:ex | |
80d13adb2e77
better errorHandling in readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
145 |
^ exceptionBlock value |
80d13adb2e77
better errorHandling in readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
146 |
] do:[ |
3995
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
147 |
|str hour min sec| |
216 | 148 |
|
1701
80d13adb2e77
better errorHandling in readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
149 |
str := aStringOrStream readStream. |
80d13adb2e77
better errorHandling in readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
150 |
|
3995
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
151 |
hour := Integer readFrom:str. |
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
152 |
(hour between:0 and:24) ifFalse:[^ exceptionBlock value]. |
275 | 153 |
|
3481
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
154 |
min := 0. |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
155 |
sec := 0. |
3477 | 156 |
str atEnd ifFalse:[ |
3481
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
157 |
(str peek == $:) ifTrue:[ |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
158 |
str next. |
3995
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
159 |
min := Integer readFrom:str. |
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
160 |
(min between:0 and:59) ifFalse:[^ exceptionBlock value]. |
275 | 161 |
|
3481
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
162 |
(str peek == $:) ifTrue:[ |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
163 |
str next. |
3995
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
164 |
sec := Integer readFrom:str. |
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
165 |
(sec between:0 and:59) ifFalse:[^ exceptionBlock value]. |
3481
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
166 |
]. |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
167 |
]. |
3477 | 168 |
[str peek == Character space] whileTrue:[str next]. |
3481
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
169 |
(str peek == $p or:[str peek == $P]) ifTrue:[ |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
170 |
str next. |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
171 |
(str peek == $m or:[str peek == $M]) ifTrue:[ |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
172 |
str next |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
173 |
]. |
3995
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
174 |
(hour <= 0 or:[hour > 12]) ifTrue:[^ exceptionBlock value]. |
3478 | 175 |
|
3477 | 176 |
"pm" |
3478 | 177 |
hour ~~ 12 ifTrue:[ |
178 |
hour := hour + 12 |
|
179 |
] |
|
180 |
] ifFalse:[ |
|
3481
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
181 |
(str peek == $a or:[str peek == $A]) ifTrue:[ |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
182 |
str next. |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
183 |
(str peek == $m or:[str peek == $M]) ifTrue:[ |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
184 |
str next |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
185 |
]. |
3995
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
186 |
hour >= 12 ifTrue:[^ exceptionBlock value]. |
3478 | 187 |
hour == 24 ifTrue:[ |
188 |
hour := 0. |
|
189 |
] |
|
190 |
] |
|
191 |
] |
|
1701
80d13adb2e77
better errorHandling in readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
192 |
]. |
4031 | 193 |
newTime := self basicNew setHours:hour minutes:min seconds:sec |
3995
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
194 |
]. |
777470826394
no need for another error-handler blcok in #readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
3709
diff
changeset
|
195 |
^ newTime |
216 | 196 |
|
239 | 197 |
" |
3481
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
198 |
Time readFrom:'0:00' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
199 |
Time readFrom:'2:00' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
200 |
Time readFrom:'12:00' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
201 |
Time readFrom:'14:00' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
202 |
Time readFrom:'23:00' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
203 |
Time readFrom:'24:00' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
204 |
Time readFrom:'2:30 am' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
205 |
Time readFrom:'2:30 pm' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
206 |
Time readFrom:'14' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
207 |
Time readFrom:'2 am' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
208 |
Time readFrom:'2 pm' |
1da093bda862
allow reading of times without secs/minutes.
Claus Gittinger <cg@exept.de>
parents:
3478
diff
changeset
|
209 |
|
409 | 210 |
Time readFrom:'18:22:00' |
211 |
Time readFrom:'14:00:11' |
|
212 |
Time readFrom:'7:00:11' |
|
3478 | 213 |
Time readFrom:'24:00:00' |
214 |
Time readFrom:'0:00:00' |
|
215 |
Time readFrom:'12:00:00' |
|
216 |
Time readFrom:'0:00:00' |
|
409 | 217 |
Time readFrom:'6:22:00 pm' |
218 |
Time readFrom:'2:00:11 pm' |
|
219 |
Time readFrom:'7:00:11 am' |
|
3478 | 220 |
Time readFrom:'12:00:00 am' |
221 |
Time readFrom:'0:00:00 am' |
|
222 |
Time readFrom:'24:00:00 am' |
|
223 |
Time readFrom:'12:00:00 pm' |
|
224 |
Time readFrom:'0:00:00 pm' - invalid |
|
225 |
Time readFrom:'24:00:00 pm' |
|
239 | 226 |
" |
569
7134eb78cf48
readFrom:onError: can now also read from a string
Claus Gittinger <cg@exept.de>
parents:
530
diff
changeset
|
227 |
|
1701
80d13adb2e77
better errorHandling in readFrom:onError:
Claus Gittinger <cg@exept.de>
parents:
1502
diff
changeset
|
228 |
"Modified: 8.10.1996 / 19:32:11 / cg" |
1 | 229 |
! ! |
230 |
||
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
231 |
!Time class methodsFor:'format strings'! |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
232 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
233 |
formatString12us |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
234 |
"return the format string used to format US times (and other areas)" |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
235 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
236 |
^ '%u:%m:%s %a' |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
237 |
! |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
238 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
239 |
formatString24 |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
240 |
"return the format string used to format european times (and other areas)" |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
241 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
242 |
^ '%h:%m:%s' |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
243 |
! ! |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
244 |
|
4412 | 245 |
!Time methodsFor:'Compatibility - Squeak'! |
246 |
||
247 |
intervalString |
|
248 |
"Treat the time as a difference. |
|
249 |
Give it in hours and minutes with two digits of accuracy." |
|
250 |
||
251 |
|hours minutes seconds hh mm ss | |
|
252 |
||
253 |
hours := self hours. |
|
254 |
minutes := self minutes. |
|
255 |
seconds := self seconds. |
|
256 |
hh := hours = 0 ifTrue: [''] ifFalse: [' ', hours printString, ' hours']. |
|
257 |
mm := minutes = 0 ifTrue: [''] ifFalse: [' ', minutes printString, ' minutes']. |
|
258 |
ss := seconds = 0 ifTrue: [''] ifFalse: [' ', seconds printString, ' seconds']. |
|
259 |
hh size > 0 ifTrue: [ss := '']. |
|
260 |
^ hh, mm, ss |
|
261 |
||
262 |
" |
|
263 |
(Time fromSeconds:3600) intervalString |
|
264 |
(Time fromSeconds:3605) intervalString |
|
265 |
(Time fromSeconds:5) intervalString |
|
266 |
(Time fromSeconds:65) intervalString |
|
267 |
" |
|
4999 | 268 |
! |
269 |
||
270 |
print24:prnt24Format showSeconds:doSeconds on:aStream |
|
271 |
"print me either US or 24hr format, optionally with |
|
272 |
seconds on a stream" |
|
273 |
||
274 |
|format| |
|
275 |
||
276 |
prnt24Format ifTrue:[ |
|
277 |
doSeconds ifTrue:[ |
|
278 |
format := '%h:%m:%s' |
|
279 |
] ifFalse:[ |
|
280 |
format := '%h:%m' |
|
281 |
]. |
|
282 |
] ifFalse:[ |
|
283 |
"/ US format |
|
284 |
doSeconds ifTrue:[ |
|
285 |
format := '%u:%m:%s %a' |
|
286 |
] ifFalse:[ |
|
287 |
format := '%u:%m %a' |
|
288 |
]. |
|
289 |
]. |
|
290 |
^ self |
|
291 |
printOn:aStream |
|
292 |
format:format. |
|
293 |
||
294 |
" |
|
295 |
Time now print24:true showSeconds:true on:Transcript. Transcript cr. |
|
296 |
Time now print24:false showSeconds:true on:Transcript. Transcript cr. |
|
297 |
Time now print24:true showSeconds:false on:Transcript. Transcript cr. |
|
298 |
Time now print24:false showSeconds:false on:Transcript. Transcript cr. |
|
299 |
" |
|
4412 | 300 |
! ! |
301 |
||
95 | 302 |
!Time methodsFor:'accessing'! |
77 | 303 |
|
699 | 304 |
day |
305 |
"catch day access - Time does not know about it" |
|
77 | 306 |
|
699 | 307 |
^ self shouldNotImplement |
1 | 308 |
! |
309 |
||
241 | 310 |
hours |
311 |
"return the number of hours since midnight (i.e. 0..23)" |
|
95 | 312 |
|
241 | 313 |
^ timeEncoding // 3600 |
314 |
||
315 |
" |
|
316 |
Time now hours |
|
317 |
" |
|
275 | 318 |
! |
319 |
||
4845 | 320 |
milliseconds |
321 |
"time does not keep milliseconds |
|
322 |
- for compatibility with absoluteTime" |
|
323 |
||
324 |
^ 0 |
|
325 |
! |
|
326 |
||
699 | 327 |
minutes |
328 |
"return the number of minutes within the hour (i.e. 0..59)" |
|
275 | 329 |
|
699 | 330 |
^ (timeEncoding \\ 3600) // 60 |
331 |
||
332 |
" |
|
333 |
Time now minutes |
|
334 |
" |
|
275 | 335 |
! |
336 |
||
337 |
month |
|
338 |
"catch month access - Time does not know about it" |
|
339 |
||
340 |
^ self shouldNotImplement |
|
341 |
! |
|
342 |
||
699 | 343 |
seconds |
344 |
"return the number of seconds within the minute (i.e. 0..59)" |
|
345 |
||
346 |
^ (timeEncoding \\ 3600) \\ 60 |
|
347 |
||
348 |
" |
|
349 |
Time now seconds |
|
350 |
" |
|
351 |
! |
|
352 |
||
275 | 353 |
year |
354 |
"catch year access - Time does not know about it" |
|
355 |
||
356 |
^ self shouldNotImplement |
|
1 | 357 |
! ! |
358 |
||
699 | 359 |
!Time methodsFor:'comparing'! |
360 |
||
361 |
< aTime |
|
5390 | 362 |
"return true if the receiver is before the argument" |
699 | 363 |
|
364 |
^ timeEncoding < aTime timeEncoding |
|
365 |
! |
|
1 | 366 |
|
699 | 367 |
= aTime |
368 |
"return true if the argument, aTime represents the same timeOfDay" |
|
369 |
||
370 |
aTime class == self class ifTrue:[ |
|
371 |
^ timeEncoding == aTime timeEncoding |
|
372 |
]. |
|
373 |
(aTime species == self species) ifFalse:[^ false]. |
|
374 |
^ self asSeconds == aTime asSeconds |
|
375 |
! |
|
376 |
||
377 |
> aTime |
|
5390 | 378 |
"return true if the receiver is before the argument" |
95 | 379 |
|
699 | 380 |
^ timeEncoding > aTime timeEncoding |
381 |
! |
|
382 |
||
383 |
hash |
|
384 |
"return an integer useful for hashing on times" |
|
385 |
||
386 |
^ timeEncoding |
|
387 |
! ! |
|
388 |
||
389 |
!Time methodsFor:'converting'! |
|
95 | 390 |
|
699 | 391 |
asAbsoluteTime |
392 |
"return an AbsoluteTime object from the receiver. |
|
393 |
The date components are taken from today." |
|
394 |
||
395 |
|today| |
|
396 |
||
397 |
today := Date today. |
|
4379 | 398 |
^ AbsoluteTime year:today year month:today month day:today day |
399 |
hour:self hours minute:self minutes second:self seconds |
|
95 | 400 |
" |
699 | 401 |
Time now asAbsoluteTime |
95 | 402 |
" |
4379 | 403 |
|
404 |
"Modified: / 13.7.1999 / 12:32:08 / stefan" |
|
62 | 405 |
! |
406 |
||
699 | 407 |
asSeconds |
408 |
"return the number of seconds elapsed since midnight" |
|
1 | 409 |
|
699 | 410 |
^ timeEncoding |
95 | 411 |
|
412 |
" |
|
699 | 413 |
Time now asSeconds |
95 | 414 |
" |
415 |
! |
|
416 |
||
699 | 417 |
asTime |
418 |
"return a Time object from the receiver - thats the receiver." |
|
419 |
||
420 |
^ self |
|
421 |
! ! |
|
422 |
||
423 |
!Time methodsFor:'printing & storing'! |
|
424 |
||
95 | 425 |
print12HourFormatOn:aStream |
426 |
"append a printed representation of the receiver to aStream. |
|
241 | 427 |
Format is hh:mm:ss am/pm (i.e. 12-hour american format)." |
95 | 428 |
|
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
429 |
^ self |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
430 |
printOn:aStream |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
431 |
format:(self class formatString12us) |
3478 | 432 |
|
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
433 |
"/ |h m s ampm| |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
434 |
"/ |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
435 |
"/ h := self hours. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
436 |
"/ |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
437 |
"/ "/ 0 -> 12 am |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
438 |
"/ "/ 12 -> 12 pm |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
439 |
"/ |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
440 |
"/ h // 12 == 0 ifTrue:[ |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
441 |
"/ ampm := ' am'. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
442 |
"/ ] ifFalse:[ |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
443 |
"/ ampm := ' pm'. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
444 |
"/ ]. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
445 |
"/ |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
446 |
"/ h == 0 ifFalse:[ |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
447 |
"/ h := h - 1 \\ 12 + 1. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
448 |
"/ ]. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
449 |
"/ |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
450 |
"/ h printOn:aStream. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
451 |
"/ aStream nextPut:$:. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
452 |
"/ m := self minutes. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
453 |
"/ (m < 10) ifTrue:[aStream nextPut:$0]. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
454 |
"/ m printOn:aStream. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
455 |
"/ aStream nextPut:$:. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
456 |
"/ s := self seconds. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
457 |
"/ (s < 10) ifTrue:[aStream nextPut:$0]. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
458 |
"/ s printOn:aStream. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
459 |
"/ aStream nextPutAll:ampm |
95 | 460 |
|
461 |
" |
|
216 | 462 |
Time now print12HourFormatOn:Transcript. Transcript cr |
3477 | 463 |
(Time now subtractHours:12) print12HourFormatOn:Transcript. Transcript cr |
464 |
(Time hour:24 minutes:0 seconds:0) print12HourFormatOn:Transcript. Transcript cr |
|
465 |
(Time hour:12 minutes:0 seconds:0) print12HourFormatOn:Transcript. Transcript cr |
|
466 |
(Time hour:0 minutes:0 seconds:0) print12HourFormatOn:Transcript. Transcript cr |
|
3478 | 467 |
0 to:24 do:[:h | |
468 |
(Time hour:h minutes:0 seconds:0) print12HourFormatOn:Transcript. Transcript cr |
|
469 |
] |
|
95 | 470 |
" |
699 | 471 |
! |
241 | 472 |
|
699 | 473 |
print24HourFormatOn:aStream |
474 |
"append a printed representation of the receiver to aStream. |
|
475 |
Format is hh:mm:ss (i.e. 24-hour european format)." |
|
476 |
||
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
477 |
^ self |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
478 |
printOn:aStream |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
479 |
format:(self class formatString24). |
241 | 480 |
|
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
481 |
"/ |h m s| |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
482 |
"/ |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
483 |
"/ h := self hours. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
484 |
"/ (h < 10) ifTrue:[aStream nextPut:$0]. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
485 |
"/ h printOn:aStream. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
486 |
"/ aStream nextPut:$:. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
487 |
"/ m := self minutes. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
488 |
"/ (m < 10) ifTrue:[aStream nextPut:$0]. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
489 |
"/ m printOn:aStream. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
490 |
"/ aStream nextPut:$:. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
491 |
"/ s := self seconds. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
492 |
"/ (s < 10) ifTrue:[aStream nextPut:$0]. |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
493 |
"/ s printOn:aStream |
241 | 494 |
|
495 |
" |
|
699 | 496 |
Time now print24HourFormatOn:Transcript. Transcript cr |
241 | 497 |
" |
275 | 498 |
! |
499 |
||
699 | 500 |
printOn:aStream |
4392 | 501 |
"append a user printed representation of the receiver to aStream. |
502 |
The format is suitable for a human - not meant to be read back. |
|
503 |
||
699 | 504 |
Format is hh:mm:ss either in 12-hour or 24-hour format. |
505 |
depending on the setting of LanguageTerritory. |
|
506 |
I dont know what ST-80 does here (12-hour format ?)" |
|
241 | 507 |
|
993
feaa62827c41
check for territory being #us (instead of #usa) when printing
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
508 |
LanguageTerritory == #us ifTrue:[ |
feaa62827c41
check for territory being #us (instead of #usa) when printing
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
509 |
self print12HourFormatOn:aStream |
699 | 510 |
] ifFalse:[ |
993
feaa62827c41
check for territory being #us (instead of #usa) when printing
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
511 |
self print24HourFormatOn:aStream |
699 | 512 |
] |
275 | 513 |
|
699 | 514 |
" |
515 |
Time now printOn:Transcript. Transcript cr |
|
516 |
" |
|
993
feaa62827c41
check for territory being #us (instead of #usa) when printing
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
517 |
|
feaa62827c41
check for territory being #us (instead of #usa) when printing
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
518 |
"Modified: 22.2.1996 / 16:58:30 / cg" |
2706
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
519 |
! |
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
520 |
|
3709 | 521 |
printString12HourFormat |
522 |
"return a printed representation in 12 hour format" |
|
523 |
||
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
524 |
^ self printStringFormat:(self class formatString12us) |
3709 | 525 |
|
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
526 |
" |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
527 |
Time now printString12HourFormat |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
528 |
" |
3709 | 529 |
! |
530 |
||
531 |
printString24HourFormat |
|
532 |
"return a printed representation in 24 hour format" |
|
533 |
||
4411
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
534 |
^ self printStringFormat:(self class formatString24) |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
535 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
536 |
" |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
537 |
Time now printString24HourFormat |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
538 |
" |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
539 |
|
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
540 |
! |
684a2b944463
much improved formatting (see #printOn:format:)
Claus Gittinger <cg@exept.de>
parents:
4392
diff
changeset
|
541 |
|
2706
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
542 |
shortPrintString |
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
543 |
"dummy - for now" |
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
544 |
|
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
545 |
^ self printString |
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
546 |
|
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
547 |
"Created: 20.6.1997 / 17:17:01 / cg" |
241 | 548 |
! ! |
549 |
||
550 |
!Time methodsFor:'private'! |
|
551 |
||
1502 | 552 |
fromOSTime:osTime |
553 |
"set my time, given an osTime" |
|
275 | 554 |
|
555 |
|h m s| |
|
1502 | 556 |
|
557 |
OperatingSystem computeTimePartsOf:osTime for:[ |
|
558 |
:hours :minutes :secs :millis | |
|
275 | 559 |
|
1502 | 560 |
h := hours. |
561 |
m := minutes. |
|
562 |
s := secs. |
|
275 | 563 |
]. |
4031 | 564 |
self setHours:h minutes:m seconds:s |
275 | 565 |
|
1502 | 566 |
"Modified: 1.7.1996 / 15:21:06 / cg" |
275 | 567 |
! |
568 |
||
3477 | 569 |
getMilliseconds |
570 |
^ self getSeconds * 1000 |
|
571 |
! |
|
572 |
||
275 | 573 |
getSeconds |
574 |
^ timeEncoding |
|
575 |
! |
|
576 |
||
4031 | 577 |
setHours:h minutes:m seconds:s |
699 | 578 |
"set my time given individual values" |
579 |
||
3477 | 580 |
self setSeconds:(((h\\24) * 60 * 60 ) + (m * 60) + s). |
581 |
! |
|
582 |
||
583 |
setMilliseconds:millis |
|
584 |
"set my time given milliseconds since midnight" |
|
585 |
||
586 |
self setSeconds:(millis // 1000) |
|
699 | 587 |
! |
588 |
||
275 | 589 |
setSeconds:secs |
590 |
"set my time given seconds since midnight" |
|
591 |
||
3477 | 592 |
secs < 0 ifTrue:[ |
593 |
timeEncoding := (24 * 3600) - (secs negated \\ (24 * 3600)) |
|
594 |
] ifFalse:[ |
|
595 |
timeEncoding := secs |
|
596 |
] |
|
275 | 597 |
! |
598 |
||
699 | 599 |
timeEncoding |
600 |
"the internal encoding is stricktly private, |
|
601 |
and should not be used outside." |
|
275 | 602 |
|
699 | 603 |
^ timeEncoding |
275 | 604 |
! |
605 |
||
241 | 606 |
timeEncoding:encoding |
607 |
"the internal encoding is stricktly private, |
|
608 |
and should not be used outside." |
|
609 |
||
610 |
timeEncoding := encoding |
|
699 | 611 |
! ! |
612 |
||
2706
878723bc99fc
added #shortPrintString for ST80 compatibility
Claus Gittinger <cg@exept.de>
parents:
1701
diff
changeset
|
613 |
!Time class methodsFor:'documentation'! |
241 | 614 |
|
699 | 615 |
version |
5873 | 616 |
^ '$Header: /cvs/stx/stx/libbasic/Time.st,v 1.47 2001-05-17 22:42:20 stefan Exp $' |
241 | 617 |
! ! |