THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/08/2011 at 07:57, xxxxxxxx wrote:
Trying to set DateTime from external file (exif)
Any pointer how to format the DateTimeData() object?
What I have are strings that need to go "into" the:
mytimedata = DateTimeData()
The code here prints a skyobject datetime, I'd like to go
the other way using my strings as base.
import c4d from c4d import gui, DateTimeData def main() : sky = doc.GetFirstObject() skybc = sky.GetDataInstance() skydtd = skybc.GetData(c4d.SKY_DATE_TIME) print DateTimeData.GetDateTime(skydtd)