Python Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

Python Examples

Quick Start
Unicode
Byte Array
Bz2
Certificates
CSV
Email
Encryption
FTP
HTML-to-XML
HTTP
IMAP
MHT
MIME
POP3
RSA
S/MIME
Signatures
Socket / SSL
SFTP
SMTP
Spider
SSH Key
SSH
SSH Tunnel
Tar
HTTP Upload
XML
XMP
Zip

More Examples...
String
Email Object
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA

Unreleased...
Bzip2
LZW
Icon

 

 

 

 

 

 

 

chilkat.SYSTEMTIME in Python

Documents the SYSTEMTIME structure in Python.

Download Chilkat Python Library

import chilkat


#  Instantiate a new email object.
#  It will automatically contain a Date header field
#  with the current date/time.
email = chilkat.CkEmail()

#  
# Create a chilkat.SYSTEMTIME object.
sysTime = chilkat.SYSTEMTIME()

# Fill it with the LocalDate
email.get_LocalDate(sysTime)

# Print the fields
# The year. The valid values for this member are 1601 through 30827.
print str(sysTime.wYear)
# Month: 1=Jan, 2=Feb, 3=Mar, 4=Apr, etc.
print str(sysTime.wMonth)
# Day-of-week: 0=Sunday, 1=Monday, ... 6=Saturday
print str(sysTime.wDayOfWeek)
# Day: 1 .. 31
print str(sysTime.wDay)
# Hour: 0 .. 23
print str(sysTime.wHour)
# Minute: 0 .. 59
print str(sysTime.wMinute)
# Second: 0 .. 59
print str(sysTime.wSecond)
# Millisec: 0 .. 999
print str(sysTime.wMilliseconds)


 

Need a specific example? Send a request to support@chilkatsoft.com

© 2000-2008 Chilkat Software, Inc. All Rights Reserved.