GMT tokens to filetime

Steve French smfrench at
Thu Aug 9 15:58:53 UTC 2018

Samba has timeval_str_buf() in lib/util/tim_basic.c which converts to
the RFC5424 time format which is similar, but is the wrong direction,
similarly smb2 create code in parsing the timewarp context goes the
other direction (to rather than from GMT), but hopefully some off the
vss_snapshot code has examples of the other direction.
On Thu, Aug 9, 2018 at 9:52 AM Tom Talpey <ttalpey at> wrote:
> The snapshot GMTTokens are basically RFC3339 format, with some substitutions to accommodate storing as (unique-ish legal) filenames. There are lots of RFC3339 parsers that could easily be modified?
> -----Original Message-----
> From: linux-cifs-owner at <linux-cifs-owner at> On Behalf Of Steve French
> Sent: Thursday, August 9, 2018 2:20 AM
> To: samba-technical <samba-technical at>; CIFS <linux-cifs at>
> Subject: GMT tokens to filetime
> Since snapshots are GMTTokens (48 bytes unicode followed by null e.g.
> "@GMT-2001.03.30-14.44.00") while SMB3 timewarp open contexts require
> Timestamps (64 bit field that is 100nsecs since 1601) anyone know
> tools or examples that convert between them in userspace (that we
> could use e.g. in cifs-utils to convert these)?
> I didn't see snapshot related stuff in smbclient
> --
> Thanks,
> Steve
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo at
> More majordomo info at



More information about the samba-technical mailing list