473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Date type in win32com?

Hi.

I'm migrating a VBScript into python.

How should I convert Date type parameter in VBScript's COM interface
with win32com?

I couldn't find any answer yet...

Thank you in advance.
Aug 26 '08 #1
2 1592
Haeyoung Kim wrote:
Hi.

I'm migrating a VBScript into python.

How should I convert Date type parameter in VBScript's COM interface
with win32com?

I couldn't find any answer yet...
Could you give an example of code you're trying
to translate? Normally it's quite simple, but
different subsystems can expect different date
values. (Such as the notorious number-of-100-ns-
intervals-since-01-jan-1601).

TJG
Aug 27 '08 #2
En Tue, 26 Aug 2008 08:53:40 -0300, Haeyoung Kim <ge*******@gmail.com>
escribi�:
I'm migrating a VBScript into python.

How should I convert Date type parameter in VBScript's COM interface
with win32com?
Look for PyTime in the pywin32 documentation.
--
Gabriel Genellina

Aug 28 '08 #3

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

Similar topics

0
by: UlleAcki | last post by:
Hi, in my Python program I have to use a COM-Server. One method of the COM class needs a SAFEARRAY of a special type as parameter. Trying to create such an array and calling the method results in...
0
by: Tim Roberts | last post by:
It looks to me like the handling of the currency type in an ADODB connecction from Python is broken. Currency data in an Access database is stored as a 64-bit integer, scaled by 10000. In an...
4
by: KuhlmannSascha | last post by:
Hi, i tried now for several hours to read through a win32com API to access Itunes and read out myplaylists. First of all the Code: import os, sys, pythoncom, win32com.client, pywintypes,...
2
by: tedpottel | last post by:
Hi, I cannot get the following code to work import win32com.client import time engine = win32com.client.Dispatch("DAO.DBEngine.36") db=engine.OpenDatabase(r"testdate2.mdb") access =...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.