Using chilkat.SYSTEMTIME in Python
Demonstrates how to create and populate a chilkat.
SYSTEMTIME object in Python.
import sys import chilkat email = chilkat.CkEmail() sysTime = chilkat.SYSTEMTIME(); # The SYSTEMTIME structure has the following members: # wYear (such as 2011) # wMonth (1 = January, 12 = December) # wDayOfWeek (0 to 6, where 0 = Sunday 1 = Monday, ... 6 = Sunday) # wDayOfWeek may be left at 0 if the other values are set. # wDay (1 to 31) # wHour (0 to 23) # wMinute (0 to 59) # wSecond (0 to 59) # wMilliseconds (0 to 999) # Set the date to 15-April-2011 2:15:00pm sysTime.wYear = 2011; sysTime.wMonth = 4; sysTime.wDay = 15; sysTime.wHour = 14; sysTime.wMinute = 15; sysTime.wSecond = 0; # Pass the SYSTEMTIME object to a method: email.put_LocalDate(sysTime); success = email.SaveEml("out.eml")
admin
0
Tags :