473,698 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Date issue Win98 vs NT

Has anyone else had this or a similar problem and is there a workaround?

This piece of code:

from time import gmtime, strftime
_log = _log + "\\" + strftime("%m%d% y", gmtime()) + ".log"

produces a file with the name 'today's date.log' on NT, but creates a file
called 'tomorrow's date.log' on Windows 98. I would really like to know
why this happens. Any help offered is very much appreciated.

Thanks,

Stan
Jul 18 '05 #1
3 1486
On Wed, 02 Jul 2003 03:50:10 GMT, rumours say that "Stan Cook"
<sc***@elp.rr.c om> might have written:
Has anyone else had this or a similar problem and is there a workaround? This piece of code: from time import gmtime, strftime
_log = _log + "\\" + strftime("%m%d% y", gmtime()) + ".log" produces a file with the name 'today's date.log' on NT, but creates a file
called 'tomorrow's date.log' on Windows 98. I would really like to know
why this happens. Any help offered is very much appreciated.


Are you by any chance in Austin, Texas?

I could guess that first you tried this code in Windows NT, and later
rebooted to Windows 98. Running your code on Windows 98 happened after
6pm, your local time.

By that time, I think it is already tomorrow in Greenwich, England
(which is what gmtime provides). Try localtime instead (assuming your
timezone is set correctly both in NT and 98).
--
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.
Jul 18 '05 #2
Thanks!! You were right on with that one. I've been working on the program
at home and work. At work with NT and 98 at home. I changed all of the
gmtime references to localtime and everything came out correct.

Thanks again....

Stan
"Christos TZOTZIOY Georgiou" <tz**@sil-tec.gr> wrote in message
news:cb******** *************** *********@4ax.c om...
On Wed, 02 Jul 2003 03:50:10 GMT, rumours say that "Stan Cook"
<sc***@elp.rr.c om> might have written:
Has anyone else had this or a similar problem and is there a workaround?

This piece of code:

from time import gmtime, strftime
_log = _log + "\\" + strftime("%m%d% y", gmtime()) + ".log"

produces a file with the name 'today's date.log' on NT, but creates a filecalled 'tomorrow's date.log' on Windows 98. I would really like to know
why this happens. Any help offered is very much appreciated.


Are you by any chance in Austin, Texas?

I could guess that first you tried this code in Windows NT, and later
rebooted to Windows 98. Running your code on Windows 98 happened after
6pm, your local time.

By that time, I think it is already tomorrow in Greenwich, England
(which is what gmtime provides). Try localtime instead (assuming your
timezone is set correctly both in NT and 98).
--
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.

Jul 18 '05 #3
Thanks!! You were right on with that one. I've been working on the program
at home and work. At work with NT and 98 at home. I changed all of the
gmtime references to localtime and everything came out correct.

Thanks again....

Stan
"Christos TZOTZIOY Georgiou" <tz**@sil-tec.gr> wrote in message
news:cb******** *************** *********@4ax.c om...
On Wed, 02 Jul 2003 03:50:10 GMT, rumours say that "Stan Cook"
<sc***@elp.rr.c om> might have written:
Has anyone else had this or a similar problem and is there a workaround?

This piece of code:

from time import gmtime, strftime
_log = _log + "\\" + strftime("%m%d% y", gmtime()) + ".log"

produces a file with the name 'today's date.log' on NT, but creates a filecalled 'tomorrow's date.log' on Windows 98. I would really like to know
why this happens. Any help offered is very much appreciated.


Are you by any chance in Austin, Texas?

I could guess that first you tried this code in Windows NT, and later
rebooted to Windows 98. Running your code on Windows 98 happened after
6pm, your local time.

By that time, I think it is already tomorrow in Greenwich, England
(which is what gmtime provides). Try localtime instead (assuming your
timezone is set correctly both in NT and 98).
--
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.

Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1822
by: jon morgan | last post by:
Hi, I need to debug my app. under Windows 98. Although VS.net can't be installed it I have been able to install both Framework 1.1 and the SDK. Can I debug the app. in VS.net remotely from an XPSP2 system over a peer to peer network ? Although both machines can see each other fine, DCOM seems to jump in when I try to connect to the Win98 machine in Debug>Processes>Name and tells me the
6
2292
by: Andrzej | last post by:
Used to read newsgroup for answers, now have to ask for them as well. I have an application (C#, .NET 1.1) that connects to local db on MSDE 2000 SP3a (using ADO from MDAC 2.71) on one side and to a web service on the other (not relevant I guess). Some stored procedures consume xml produced by DataSet objects (values as elements) using OPENXML statements. The application should be distributed among users having also Win98. Established...
0
1597
by: Macadair | last post by:
I develop mid-range multi-user applications for a large site. Currently Win98 and Office97 are the standards used however we are slowly moving to WinXP. Due to the site upgrade cost, we are staying with Office97 for a little longer. This means we will have Win98 and WinXP PC's running Access97. When I compile an Access97 application on a Win98 PC, the resultant .mde functions correctly on both Win98 and WinXP PC's running Access97....
1
1476
by: Jodi Wedll | last post by:
I am attempting to deploy my .Net Application from my WinXP development machine to production systems based upon WinNT and Win98. I believe that it is mostly working except for code relating to the error coding. I have error coding that warns the user of problems with the information supplied. I used "System.Windows.Forms.ErrorProvider" based error coding which flags the control with the problem data for the user. The app blows when...
2
1640
by: Scott | last post by:
I have an application written in C# using VS 2003 with MSDE as the database. The reports use Crystal as provided with VS. The application and reports work correctly under WinXP, but the reports do not work under Win98. I have read the info re dbghelp.dll and CRQE.dll under Win98 ad have implemented the recommendations. This avoids the "Failed to load report" error. http://support.businessobjects.com/library/kbase/articles/c2013420.asp ...
1
1285
by: bene | last post by:
i have an application written in vc 7.0 deploying it to XP or win2k is not problem however, for win98 and winme, the oleacc.dll that comes with the installation packet(.msi, instmsi?.exe) seems not compatible with those exists on the target machine. the solution i found is simply overwrite the oleacc.dll in my application folder with the oleacc.dll in c:\win98\system\oleacc.dll or
4
1737
by: Wasi Rehman | last post by:
hi friends, I have one webservice which i want to run on win98 system because some reference in that webservice only run in win98, and my ASP.net application is on win2000 pro. I want to call that webservice from my ASP.net application how could i do that........ how can i publish my webservice on win98 , is it possible or not if not then what should i do ........ remember the DLL which is called by my webservice only run on Win98.
7
2168
by: Maravilloso | last post by:
Hi I'm trying to automatically send a postscript file to be printed to the default printer in a Win98 PC, by means of using the instrucction: win32api.ShellExecute (0, "print", "file.ps", None, ".", 0) but it raises an exception with the message: error: (31, 'ShellExecute', 'A device attached to the system is not
9
2417
by: mistral | last post by:
Need help to remove list of days from date script. Need format "June 07, 2006" <SCRIPT LANGUAGE="JavaScript"> <!-- Begin // Get today's current date. var now = new Date();
0
9018
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7711
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3038
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2322
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.