[vwnc] Time

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Time

david.long
Hi everyone,

ok, I have a question about the Time class. When I run Time now, it comes back with an instance of Time, but it does not match what is on the system clock - it is off by 6 hours.

I'm guessing this is to do with the time zone.

Is there a way for it to get the time correct for my time zone?

thanks,

David


-- 

CEO
SageTea Group
613 722 2091 x 5
http://sageteagroup.com

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Time

Janos

David,

 

you can either set your timezone (in System/Settings, TimeZones)

 

or experiment with the following:

 

load OSTimeZone.pcl from contributed/BottomFeeder (in earlier releases it was in \goodies\parc\)

After loading the parcel DoIt in a workspace:

 

      TimeZone setDefaultTimeZone: self timeZone.

      TimeZone osSetTimeZone.

 

Best regards,

Janos

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of David Long
Sent: Monday, June 29, 2009 12:52 PM
To: 'VWNC'
Subject: [vwnc] Time

 

Hi everyone,

ok, I have a question about the Time class. When I run Time now, it comes back with an instance of Time, but it does not match what is on the system clock - it is off by 6 hours.

I'm guessing this is to do with the time zone.

Is there a way for it to get the time correct for my time zone?

thanks,

David

 
-- 
 
CEO
SageTea Group
613 722 2091 x 5
http://sageteagroup.com

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Time

Georg Heeg
In reply to this post by david.long

Please have look in the settings tool. In the tab Timezone you will find executable expressions to set the time zone.

 

Georg

 

Georg Heeg eK, Dortmund und Köthen, HR Dortmund A 12812

Tel. +49-3496-214328, Fax +49-3496-214712


Von: [hidden email] [mailto:[hidden email]] Im Auftrag von David Long
Gesendet: Montag, 29. Juni 2009 12:52
An: 'VWNC'
Betreff: [vwnc] Time

 

Hi everyone,

ok, I have a question about the Time class. When I run Time now, it comes back with an instance of Time, but it does not match what is on the system clock - it is off by 6 hours.

I'm guessing this is to do with the time zone.

Is there a way for it to get the time correct for my time zone?

thanks,

David

 
-- 
 
CEO
SageTea Group
613 722 2091 x 5
http://sageteagroup.com

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Time

david.long
In reply to this post by Janos
wow cool, thanks!

On Mon, 2009-06-29 at 12:31 +0100, Kazsoki, Janos wrote:

> David,
>
>  
>
> you can either set your timezone (in System/Settings, TimeZones)
>
>  
>
> or experiment with the following:
>
>  
>
> load OSTimeZone.pcl from contributed/BottomFeeder (in earlier releases
> it was in \goodies\parc\)
>
> After loading the parcel DoIt in a workspace:
>
>  
>
>       TimeZone setDefaultTimeZone: self timeZone.
>
>       TimeZone osSetTimeZone.
>
>  
>
> Best regards,
>
> Janos
>
>  
>
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of David Long
> Sent: Monday, June 29, 2009 12:52 PM
> To: 'VWNC'
> Subject: [vwnc] Time
>
>
>  
>
> Hi everyone,
>
> ok, I have a question about the Time class. When I run Time now, it
> comes back with an instance of Time, but it does not match what is on
> the system clock - it is off by 6 hours.
>
> I'm guessing this is to do with the time zone.
>
> Is there a way for it to get the time correct for my time zone?
>
> thanks,
>
> David
>
>
>
>  
> --
>  
> CEO
> SageTea Group
> 613 722 2091 x 5
> http://sageteagroup.com
>
>  
>
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Time

david.long
In reply to this post by Georg Heeg
awesome.

On Mon, 2009-06-29 at 13:32 +0200, Georg Heeg wrote:

> Please have look in the settings tool. In the tab Timezone you will
> find executable expressions to set the time zone.
>
>  
>
> Georg
>
>  
>
> Georg Heeg eK, Dortmund und Köthen, HR Dortmund A 12812
>
> Tel. +49-3496-214328, Fax +49-3496-214712
>
>
>                                    
> ______________________________________________________________________
> Von: [hidden email] [mailto:[hidden email]] Im
> Auftrag von David Long
> Gesendet: Montag, 29. Juni 2009 12:52
> An: 'VWNC'
> Betreff: [vwnc] Time
>
>
>  
>
> Hi everyone,
>
> ok, I have a question about the Time class. When I run Time now, it
> comes back with an instance of Time, but it does not match what is on
> the system clock - it is off by 6 hours.
>
> I'm guessing this is to do with the time zone.
>
> Is there a way for it to get the time correct for my time zone?
>
> thanks,
>
> David
>
>
>
>  
> --
>  
> CEO
> SageTea Group
> 613 722 2091 x 5
> http://sageteagroup.com
>
>  
>
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Time

James Robertson-7
In reply to this post by Janos
Better to load TimeSoZone

Also, when 7.7 comes out, this problem goes away

James Robertson
Cincom Smalltalk Product Evangelist
Talk Small and Carry a Big Class Library




On Jun 29, 2009, at 7:31 AM, Kazsoki, Janos wrote:

David,
 
you can either set your timezone (in System/Settings, TimeZones)
 
or experiment with the following:
 
load OSTimeZone.pcl from contributed/BottomFeeder (in earlier releases it was in \goodies\parc\)
After loading the parcel DoIt in a workspace:
 
      TimeZone setDefaultTimeZone: self timeZone.
      TimeZone osSetTimeZone.
 
Best regards,
Janos
 
From: [hidden email] [[hidden email]] On Behalf Of David Long
Sent: Monday, June 29, 2009 12:52 PM
To: 'VWNC'
Subject: [vwnc] Time
 

Hi everyone,

ok, I have a question about the Time class. When I run Time now, it comes back with an instance of Time, but it does not match what is on the system clock - it is off by 6 hours.

I'm guessing this is to do with the time zone.

Is there a way for it to get the time correct for my time zone?

thanks,

David

 
-- 
 
CEO
SageTea Group
613 722 2091 x 5
http://sageteagroup.com
 
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Time

Holger Guhl
In reply to this post by david.long
Hi David,
please check your Timezone setting. Use VisualLauncher menu "System> Settings" to open the Settings tool and select section "System> Time Zones". If you want a setting for Ottawa, select the string contents below "New York--Eastern Standard:"

    TimeZone setDefaultTimeZone: TimeZone eastern

and apply menu command "Do it".

Cheers
Holger Guhl
-- 
Senior Consultant * Certified Scrum Master * [hidden email]
Tel: +49 231 9 75 99 21 * Fax: +49 231 9 75 99 20
Georg Heeg eK Dortmund
Handelsregister: Amtsgericht Dortmund  A 12812


David Long schrieb:
Hi everyone,

ok, I have a question about the Time class. When I run Time now, it comes back with an instance of Time, but it does not match what is on the system clock - it is off by 6 hours.

I'm guessing this is to do with the time zone.

Is there a way for it to get the time correct for my time zone?

thanks,

David


-- 

CEO
SageTea Group
613 722 2091 x 5
http://sageteagroup.com
        

_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Time

Michael Lucas-Smith-2
In VW 7.7 you don't have to do any of the previous suggestions, the code
to use the OS time zones is built in.

Michael

Holger Guhl wrote:

> Hi David,
> please check your Timezone setting. Use VisualLauncher menu "System>
> Settings" to open the Settings tool and select section "System> Time
> Zones". If you want a setting for Ottawa, select the string contents
> below "New York--Eastern Standard:"
>
>     TimeZone setDefaultTimeZone: TimeZone eastern
>
> and apply menu command "Do it".
>
> Cheers
> Holger Guhl
> --
> Senior Consultant * Certified Scrum Master * [hidden email]
> Tel: +49 231 9 75 99 21 * Fax: +49 231 9 75 99 20
> Georg Heeg eK Dortmund
> Handelsregister: Amtsgericht Dortmund  A 12812
>
>
> David Long schrieb:
>> Hi everyone,
>>
>> ok, I have a question about the Time class. When I run Time now, it
>> comes back with an instance of Time, but it does not match what is on
>> the system clock - it is off by 6 hours.
>>
>> I'm guessing this is to do with the time zone.
>>
>> Is there a way for it to get the time correct for my time zone?
>>
>> thanks,
>>
>> David
>>
>>
>> --
>>
>> CEO
>> SageTea Group
>> 613 722 2091 x 5
>> http://sageteagroup.com
>>        
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>  

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Time

Cesar Rabak
In reply to this post by James Robertson-7
James Robertson escreveu:
> Better to load TimeSoZone
>
> Also, when 7.7 comes out, this problem goes away
>
Just curious: does the "this problem goes away" can be understood in all
OS supported?

--
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Time

Michael Lucas-Smith-2
Cesar Rabak wrote:

> James Robertson escreveu:
>  
>> Better to load TimeSoZone
>>
>> Also, when 7.7 comes out, this problem goes away
>>
>>    
> Just curious: does the "this problem goes away" can be understood in all
> OS supported?
>
>  
Yep. Although not every OS has as wide a timezone range. Windows seems
to have a particularly good timezone range, while 32bit unix is pretty
awful. 64bit linux is much better.

Michael
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc