This is needed to get the time from modules in python/samba/netcmd/
where a time.py exist.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
import os
import sys
+import time
import samba.param
"""return a DN from a DNS name domain/forest root"""
return "DC=" + ",DC=".join(dnsdomain.split("."))
+def current_unix_time():
+ return int(time.time())
+
import _glue
version = _glue.version
interface_ips = _glue.interface_ips