summaryrefslogtreecommitdiff
path: root/source3/lib/time.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-09-25 22:20:05 +0000
committerLuke Leighton <lkcl@samba.org>1998-09-25 22:20:05 +0000
commit6fb5804b28adffbbcb45b84e485e09d9d2ddddea (patch)
treeb0eb355627e940fcbf1100e91ce89a78db3915e9 /source3/lib/time.c
parentff07b2e4a37f23af90a27456a116b773ae3bbf97 (diff)
downloadsamba-6fb5804b28adffbbcb45b84e485e09d9d2ddddea.tar.gz
samba-6fb5804b28adffbbcb45b84e485e09d9d2ddddea.tar.bz2
samba-6fb5804b28adffbbcb45b84e485e09d9d2ddddea.zip
added in samr commands. assistance in returning the missing functions,
automatically removed because they were "unused", would be appreciated. (This used to be commit d0f7b0d915973ccb85409af3d6d951a716cd66d2)
Diffstat (limited to 'source3/lib/time.c')
-rw-r--r--source3/lib/time.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c
index 7b7ca51204..89a83ebfc1 100644
--- a/source3/lib/time.c
+++ b/source3/lib/time.c
@@ -236,6 +236,17 @@ struct tm *LocalTime(time_t *t)
return(gmtime(&t2));
}
+/****************************************************************************
+take an NTTIME structure, containing high / low time. convert to unix time.
+lkclXXXX this may need 2 SIVALs not a memcpy. we'll see...
+****************************************************************************/
+time_t interpret_nt_time(NTTIME *t)
+{
+ char data[8];
+ memcpy(data, t, sizeof(data));
+ return interpret_long_date(data);
+}
+
#define TIME_FIXUP_CONSTANT (369.0*365.25*24*60*60-(3.0*24*60*60+6.0*60*60))
@@ -532,3 +543,4 @@ time_t get_create_time(SMB_STRUCT_STAT *st,BOOL fake_dirs)
*/
return ret;
}
+