Re: datetime issue

2012-11-02 Thread rurpy
On 11/02/2012 03:57 AM, Jamie Paul Griffin wrote: > / [email protected] wrote on Thu 1.Nov'12 at 15:00:48 -0700 / >> [...list of Thunderbird problems...] > > With a list of problems like that maybe the time spent on learning > how to use a Usenet client or mua that is properly written would be > wor

Re: datetime issue

2012-11-02 Thread Jamie Paul Griffin
/ [email protected] wrote on Thu 1.Nov'12 at 15:00:48 -0700 / > > * In Search dialog clicked on the Search in folder dropdown after > an earlier search and TB crashed (disappeared along with the > new message I was editing.) [3.0.1] > > * Search for japanese text in body no longer works (

Re: datetime issue

2012-11-01 Thread rurpy
On 11/01/2012 06:09 AM, Grant Edwards wrote:> On 2012-10-31, [email protected] wrote: >> On 10/31/2012 09:11 AM, Grant Edwards wrote:> On 2012-09-16, ?? >> wrote: >>> Iam positng via google groups using chrome, thats all i know. >>> >>> Learn something else. Google Groups is

Re: datetime issue

2012-11-01 Thread rurpy
On Wednesday, October 31, 2012 3:38:57 PM UTC-6, Mark Lawrence wrote: > On 31/10/2012 19:35, [email protected] wrote: >> "Broken"? Yes. But so is every piece of software in one way >> or another. Thunderbird is one of the most perpetually buggy >> pierces of software I have ever used on a continui

Re: datetime issue

2012-11-01 Thread Grant Edwards
On 2012-10-31, [email protected] wrote: > On 10/31/2012 09:11 AM, Grant Edwards wrote:> On 2012-09-16, ?? > wrote: >> >>> Iam positng via google groups using chrome, thats all i know. >> >> Learn something else. Google Groups is seriously and permanently >> broken, and all posts fr

Re: datetime issue

2012-10-31 Thread Mark Lawrence
On 01/11/2012 00:23, Robert Miles wrote: On 10/31/2012 4:38 PM, Mark Lawrence wrote: On 31/10/2012 19:35, [email protected] wrote: On 10/31/2012 09:11 AM, Grant Edwards wrote:> On 2012-09-16, ?? wrote:. "Broken"? Yes. But so is every piece of software in one way or another. Thun

Re: datetime issue

2012-10-31 Thread Robert Miles
On 10/31/2012 4:38 PM, Mark Lawrence wrote: On 31/10/2012 19:35, [email protected] wrote: On 10/31/2012 09:11 AM, Grant Edwards wrote:> On 2012-09-16, ?? wrote:. "Broken"? Yes. But so is every piece of software in one way or another. Thunderbird is one of the most perpetually bug

Re: datetime issue

2012-10-31 Thread Robert Miles
On 10/31/2012 2:35 PM, [email protected] wrote: On 10/31/2012 09:11 AM, Grant Edwards wrote:> On 2012-09-16, ?? wrote: Iam positng via google groups using chrome, thats all i know. Learn something else. Google Groups is seriously and permanently broken, and all posts from Googl

Re: datetime issue

2012-10-31 Thread Mark Lawrence
On 31/10/2012 19:35, [email protected] wrote: On 10/31/2012 09:11 AM, Grant Edwards wrote:> On 2012-09-16, ?? wrote:. "Broken"? Yes. But so is every piece of software in one way or another. Thunderbird is one of the most perpetually buggy pierces of software I have ever used on a

Re: datetime issue

2012-10-31 Thread rurpy
On 10/31/2012 09:11 AM, Grant Edwards wrote:> On 2012-09-16, ?? wrote: > >> Iam positng via google groups using chrome, thats all i know. > > Learn something else. Google Groups is seriously and permanently > broken, and all posts from Google Groups are filtered out and ignored >

Re: datetime issue

2012-10-31 Thread Grant Edwards
On 2012-09-16, ?? wrote: > Iam positng via google groups using chrome, thats all i know. Learn something else. Google Groups is seriously and permanently broken, and all posts from Google Groups are filtered out and ignored by many people (including myself -- I only saw this becaus

Re: datetime issue

2012-09-16 Thread Dave Angel
On 09/16/2012 07:56 AM, Νικόλαος Κούρας wrote: > Τη Κυριακή, 16 Σεπτεμβρίου 2012 2:34:34 μ.μ. UTC+3, ο χρήστης Steven D'Aprano > έγραψε: >> >> >> No. That's not how mailing lists work. Every email gets posted to all >> members, unless they go onto "No Mail", in which case they get no emails >>

Re: datetime issue

2012-09-16 Thread Mark Lawrence
On 16/09/2012 16:54, Chris Angelico wrote: On Mon, Sep 17, 2012 at 1:40 AM, wrote: Cant it be written more easily as: date = (datetime.datetime.utcnow(+2) i know this is not thhe correct syntax but it just needs a way to add GMT+2 hours since utc=gmt I've dithered about whether to open t

Re: datetime issue

2012-09-16 Thread Chris Angelico
On Mon, Sep 17, 2012 at 1:40 AM, wrote: > Cant it be written more easily as: > date = (datetime.datetime.utcnow(+2) > > i know this is not thhe correct syntax but it just needs a way to add GMT+2 > hours since utc=gmt I've dithered about whether to open this can of worms or let sleeping dogs l

Re: datetime issue

2012-09-16 Thread pandora . koura
Τη Κυριακή, 16 Σεπτεμβρίου 2012 4:23:02 μ.μ. UTC+3, ο χρήστης Günther Dietrich έγραψε: > In article , > > Νικόλαος Κούρας wrote: > > > > [...] > > > > >also it would be nice if datetime.datetime.now(GMT+2) can be used. > > > > In

Re: datetime issue

2012-09-16 Thread pandora . koura
Τη Κυριακή, 16 Σεπτεμβρίου 2012 6:30:15 μ.μ. UTC+3, ο χρήστης MRAB έγραψε: > On 2012-09-16 09:25, Νικόλαος Κούρας wrote: > > [snip] > > > > > > date = ( datetime.datetime.now() + datetime.timedelta(hours=8) ).strftime( > > '%y-%m-%d %H:%M:%S') > > > > > > but iam giving +8 hours which is the

Re: datetime issue

2012-09-16 Thread MRAB
On 2012-09-16 09:25, Νικόλαος Κούρας wrote: [snip] date = ( datetime.datetime.now() + datetime.timedelta(hours=8) ).strftime( '%y-%m-%d %H:%M:%S') but iam giving +8 hours which is the time difference between texas, us where the server sits and Greece's time. cant we somehow tell it to use GM

Re: datetime issue

2012-09-16 Thread Chris Angelico
On Mon, Sep 17, 2012 at 12:06 AM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> > Is it September already? >> >> Yes, it is; what does that mean in response to this question? Is there >> something about September that causes the question, or is it a once >> per month[1] question?

Re: datetime issue

2012-09-16 Thread Chris Angelico
On Sun, Sep 16, 2012 at 11:22 PM, Roy Smith wrote: > In article <[email protected]>, > Νικόλαος Κούρας wrote: >> Iam sorry i didnt do that on purpose and i dont know how this is done. >> >> Iam positng via google groups using chrome, thats all i know. >> >> Wh

Re: datetime issue

2012-09-16 Thread Günther Dietrich
In article , Νικόλαος Κούρας wrote: [...] >also it would be nice if datetime.datetime.now(GMT+2) can be used. In , one of the first answers to your question you were pointed to pytz. This module does exactly what you ask for: >>> imp

Re: datetime issue

2012-09-16 Thread Roy Smith
In article <[email protected]>, Íéêüëáïò Êïýñáò wrote: > Iam sorry i didnt do that on purpose and i dont know how this is done. > > Iam positng via google groups using chrome, thats all i know. > > Whats a mailing list? Is it September already? -- http://

Re: datetime issue

2012-09-16 Thread Νικόλαος Κούρας
Τη Κυριακή, 16 Σεπτεμβρίου 2012 2:34:34 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > On Sun, 16 Sep 2012 03:54:45 -0700, Νικόλαος Κούρας wrote: > > > > > Τη Κυριακή, 16 Σεπτεμβρίου 2012 1:49:38 μ.μ. UTC+3, ο χρήστης Steven > > > D'Aprano έγραψε: > > >> On Sun, 16 Sep 2012 03:15:11 -0700, Ν

Re: datetime issue

2012-09-16 Thread Steven D'Aprano
On Sun, 16 Sep 2012 03:54:45 -0700, Νικόλαος Κούρας wrote: > Τη Κυριακή, 16 Σεπτεμβρίου 2012 1:49:38 μ.μ. UTC+3, ο χρήστης Steven > D'Aprano έγραψε: >> On Sun, 16 Sep 2012 03:15:11 -0700, Νικόλαος Κούρας wrote: >> >> >> >> > Whats a mailing list? >> >> > Can i get responses to my mail instead

Re: datetime issue

2012-09-16 Thread Νικόλαος Κούρας
Τη Κυριακή, 16 Σεπτεμβρίου 2012 1:49:38 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > On Sun, 16 Sep 2012 03:15:11 -0700, Νικόλαος Κούρας wrote: > > > > > Whats a mailing list? > > > Can i get responses to my mail instead of constantly check the google > > > groups site? > > > > http://m

Re: datetime issue

2012-09-16 Thread Steven D'Aprano
On Sun, 16 Sep 2012 03:15:11 -0700, Νικόλαος Κούρας wrote: > Whats a mailing list? > Can i get responses to my mail instead of constantly check the google > groups site? http://mail.python.org/mailman/listinfo/python-list -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: datetime issue

2012-09-16 Thread Νικόλαος Κούρας
Τη Κυριακή, 16 Σεπτεμβρίου 2012 12:53:42 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > On Sun, 16 Sep 2012 01:25:30 -0700, Νικόλαος Κούρας wrote: > > [...] > > > > You seem to be emailing python-list AND posting to comp.lang.python (or > > the gmane mirror). Please pick one, or the other,

Re: datetime issue

2012-09-16 Thread Steven D'Aprano
On Sun, 16 Sep 2012 01:25:30 -0700, Νικόλαος Κούρας wrote: [...] You seem to be emailing python-list AND posting to comp.lang.python (or the gmane mirror). Please pick one, or the other, and not both, because the mailing list and the newsgroup are mirrors of each other. Anything you send to the

Re: datetime issue

2012-09-16 Thread Νικόλαος Κούρας
Τη Κυριακή, 16 Σεπτεμβρίου 2012 8:53:57 π.μ. UTC+3, ο χρήστης Dennis Lee Bieber έγραψε: > On Sat, 15 Sep 2012 22:15:38 -0700 (PDT), Íéêüëáïò Êïýñáò > > declaimed the following in > > gmane.comp.python.general: > > > > > > > > > > If i wanted to alter the following line, how would i write

Re: datetime issue

2012-09-16 Thread Νικόλαος Κούρας
Τη Κυριακή, 16 Σεπτεμβρίου 2012 10:51:18 π.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: > dn = datetime.datetime.now() > > dd = datetime.timedelta(hours=2) > > date = dn + dd > > date = date.strftime( '%y-%m-%d %H:%M:%S' ) > > > > still giving me texas,us time for some reason which is same a

Re: datetime issue

2012-09-16 Thread Νικόλαος Κούρας
dn = datetime.datetime.now() dd = datetime.timedelta(hours=2) date = dn + dd date = date.strftime( '%y-%m-%d %H:%M:%S' ) still giving me texas,us time for some reason -- http://mail.python.org/mailman/listinfo/python-list

Re: datetime issue

2012-09-15 Thread Νικόλαος Κούρας
Τη Σάββατο, 15 Σεπτεμβρίου 2012 11:28:47 μ.μ. UTC+3, ο χρήστης MRAB έγραψε: > On 2012-09-15 20:26, οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ wrote: > > > οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½, 15 οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ 2012 > > 10:05:49 οΏ½.οΏ½. UTC+3, οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ Chris Rebert

Re: datetime issue

2012-09-15 Thread MRAB
On 2012-09-15 20:26, Νικόλαος Κούρας wrote: Τη Σάββατο, 15 Σεπτεμβρίου 2012 10:05:49 μ.μ. UTC+3, ο χρήστης Chris Rebert έγραψε: On Sat, Sep 15, 2012 at 10:33 AM, Νικόλαος Κούρας wrote: > Hello again, > > one small matter too. > # get some enviromental values > locale.setlocale(locale.LC_ALL,

Re: datetime issue

2012-09-15 Thread Νικόλαος Κούρας
Τη Σάββατο, 15 Σεπτεμβρίου 2012 10:05:49 μ.μ. UTC+3, ο χρήστης Chris Rebert έγραψε: > On Sat, Sep 15, 2012 at 10:33 AM, Νικόλαος Κούρας > wrote: > > > Hello again, > > > > > > one small matter too. > > > > > # get some enviromental values > > > locale.setlocale(locale.LC_ALL, 'el_GR') >

Re: datetime issue

2012-09-15 Thread Chris Rebert
On Sat, Sep 15, 2012 at 10:33 AM, Νικόλαος Κούρας wrote: > Hello again, > > one small matter too. > > # get some enviromental values > locale.setlocale(locale.LC_ALL, 'el_GR') > date = datetime.datetime.now().strftime( '%y-%m-%d %H:%M:%S' ) > > although iam setting greek as locale Locales don't

Re: datetime issue

2012-09-15 Thread Jason Friedman
> # get some enviromental values > locale.setlocale(locale.LC_ALL, 'el_GR') > date = datetime.datetime.now().strftime( '%y-%m-%d %H:%M:%S' ) > > although iam setting greek as locale the time is 8 hours before, like in > texas, us > How can i change this to save the correct Greek time in variable