#!/usr/bin/perl -wl use strict; use Date::Calc 'Add_Delta_DHMS'; my $vt_filetime = '126697423010137600'; # Disregard the 100 nanosecond units (but you could save them for later) $vt_filetime = substr($vt_filetime, 0, 11); my $days = int( $vt_filetime / (24*60*60) ); my $hours = int( ($vt_filetime % (24*60*60)) / (60*60) ); my $mins = int( ($vt_filetime % (60*60)) / 60 ); my $secs = $vt_filetime % 60 ; my @date = Add_Delta_DHMS(1601, 1, 1, 0, 0, 0, $days, $hours, $mins, $secs); # Format @date as you wish print "@date"; __END__ Prints: 2002 6 28 12 51 41