Hi, STAX currently uses Jython 2.1, so you can't use the datetime module (since it was added in Python 2.3).
However, there are other Python modules (in version 2.1) that allow you to get the date/time and format it, and you can also use Java classes. See the entry "2.6.1 How do I access system date and time in a STAX job? " in the STAF FAQ for some examples (http://staf.sourceforge.net/current/STAFFAQ.htm#d0e632). Thanks, David David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315 STAF/STAX Development Bldg. 903-5B002 (363-5315) Austin, TX ITN: 23635315 IBM Software Group, 78758-3400 Email: bda...@us.ibm.com WPLC From: Ahmed Mostafa <eng.ahmed2...@gmail.com> To: STAF <staf-users@lists.sourceforge.net> Date: 08/05/2010 09:36 AM Subject: [staf-users] datetime module not found Hello, I use STAX 3.4.3, and cannot find the Python module datetime, despite Jython 2.5.1 includes it as a built-in module, http://www.jython.org/docs/library/datetime.html. Both the following lines say that there is module called datetime: from datetime import datetime import datetime I faced this problem happenned on Windows 2008, and Linux, I did not try other operating system. Is there a workaround for this? I want to get the date and time now and format it. Thank you -- Ahmed Mostafa Abdel-Baky Associate Software Engineer DB2 NSE Support Cairo Technology Development Center IBM Egypt Mobile: 0110887370 Office: +202-35361459 E-mail: ab...@eg.ibm.com ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users