I would add asString like this:
currentClassAndMethod
^Association
key: self class name asString
value: thisContext method selector asString
But yes that is correct.
Thanks, Hernan.
Donald [|]
--
View this message in context:
http://forum.world.st/I
What I posted before just gets the name of the process, not the name of the
method that is currently executing. I don't know how to do that off the top
of my head, but I will look into it this weekend.
Suggestions welcome.
Donald [|]
--
View this message in context:
http://forum.world.st/Is-
Hernan,
The Visual Smalltalk method is this:
currentClassAndMethod
^Association
key: self class name asString
value: (Processor activeProcess methodAtFrame: 1) selector
asString
I think the Pharo equivalent would be this:
currentClassAndMethod
I tried it again this morning and still had the problem.
This is interesting.
| x y |
x := DateAndTime year: 1991 day: 196 hour: 20 minute: 5 second: 7.
y := DateAndTime year: 1991 month: 7 day: 15 hour: 20 minute: 5 second: 7.
x = y <-- True
But
| x y |
x := DateAndTime year:
DateAndTime now asTime inspect -> 8:58:38.218 pm which is correct.
THis is from a virgin image (no package imports) created by unzipping the
Windows download.
I will try a different DateAndTime instance creation method tomorrow and let
you know.
This is strange. Thanks.
--
View this mess
TimeZone local inspect > a TimeZone(LT-4:00)
TimeZone local offset inspect -> aDuration -0:04:00:00
--
View this message in context:
http://forum.world.st/DateAndTime-asTime-tp4691870p4691877.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
SystemVersion current ---> Pharo2.0 of 7 March 2013 update 20596
The string is from the inspector window.
I get the same thing in a fresh image.
--
View this message in context:
http://forum.world.st/DateAndTime-asTime-tp4691870p4691873.html
Sent from the Pharo Smalltalk Users mailing list ar
In Pharo V2, if I execute this snippet:
| x |
x := DateAndTime year: 1991 day: 196 hour: 20 minute: 5 second: 7.
x asTime inspect
I get '12:0-54:0-53 am' which is not what I expect.
DateAndTime>>asTime changed from 1.4 to 2.0.
Any ideas?
Thanks
Donald [|]
--
View this message in context