public static String parseDateTime(final byte[] buffer, final int offset, final int length) {
		long result = 0;
		int end = offset + length;
		int start = offset;
		int j = 0;

		for (int i = start; i < end; i++) {
			result += ((long) buffer[i] & 0xFF) << (8 * j);
			j++;
		}

		// note that input here needs to be ms, result above is in sec
		return DateFormat.getDateTimeInstance().format(result * 1000);
	}
return the date/time string for the parsed file
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/yaffs2/YAFFS2Utils.java