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@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx <linux-cifs-owner@xxxxxxxxxxxxxxx> On Behalf Of Steve French > Sent: Thursday, August 9, 2018 2:20 AM > To: samba-technical <samba-technical@xxxxxxxxxxxxxxx>; CIFS <linux-cifs@xxxxxxxxxxxxxxx> > 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@xxxxxxxxxxxxxxx > More majordomo info at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvger.kernel.org%2Fmajordomo-info.html&data=02%7C01%7Cttalpey%40microsoft.com%7C10ae719d8aee475cc27c08d5fdc02d04%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636693924187320700&sdata=hHTZtb1yC3mD93EGoH4RD0xnB6fOFCHbhV2PBpLQr3Y%3D&reserved=0 -- Thanks, Steve -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html