Re: [Pharo-users] Is someone working with Log4s?

2013-12-29 Thread dmacq
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

Re: [Pharo-users] Is someone working with Log4s?

2013-12-28 Thread dmacq
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-

Re: [Pharo-users] Is someone working with Log4s?

2013-12-27 Thread dmacq
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

Re: [Pharo-users] DateAndTime>>asTime

2013-06-06 Thread dmacq
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:

Re: [Pharo-users] DateAndTime>>asTime

2013-06-05 Thread dmacq
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

Re: [Pharo-users] DateAndTime>>asTime

2013-06-05 Thread dmacq
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.

Re: [Pharo-users] DateAndTime>>asTime

2013-06-05 Thread dmacq
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

[Pharo-users] DateAndTime>>asTime

2013-06-05 Thread dmacq
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