[Sidefx-houdini-list] system(date) on Windows

Simon Barrick simon at primalpictures.com
Thu Apr 19 11:47:44 EDT 2007


I always use a python call

`system("python c:/ubin/datetime.py")`

Datetime.py

import time
import sys
cd = time.asctime(time.gmtime(time.time()))
sys.stdout.write(cd + "\n")

Si

-----Original Message-----
From: sidefx-houdini-list-bounces at sidefx.com
[mailto:sidefx-houdini-list-bounces at sidefx.com] On Behalf Of Ben
Schrijvers
Sent: 19 April 2007 16:50
To: sidefx-houdini-list at sidefx.com
Subject: [Sidefx-houdini-list] system(date) on Windows


Hi there,

Does anyone know a trick to get a string containing the date+time from 
hscript on WindowsXp OS.

So something that would look like this on windows:
echo `system( date )`

cheers,
benS


_______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list at sidefx.com
https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

______________________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 2nd Floor, Tennyson House, 159-163 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person.
This email has been scanned for Primal Pictures by the MessageLabs Email Security System.
______________________________________________________________________



More information about the Sidefx-houdini-list mailing list