question: private static String stampToString ( long tstamp , String formatMask ) { StringBuilder sb = new StringBuilder ( 30 ) ; Formatter fmt = new Formatter ( sb , Locale . US ) ; int [ ] pieces = new int [ NUMIDX ] ; ComponentTime . unpackBits ( tstamp , pieces ) ; fmt . format ( formatMask , pieces [ YIDX ] , pieces [ MIDX ] , pieces [ DIDX ] , pieces [ HIDX ] , pieces [ IIDX ] , pieces [ SIDX ] , pieces [ UIDX ] ) ; fmt . close ( ) ; return ( sb . toString ( ) ) ; }
target:  Convenience method for converting component time longs to strings