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