Here you can find the source of unix2afpTime(long ut)
public final static int unix2afpTime(long ut)
//package com.java2s; /** /*www. ja v a 2 s . c o m*/ * Copyright (c) 2003-2007 Stewart Allen <stewart@neuron.com>. All rights reserved. * This program is free software. See the 'License' file for details. */ public class Main { private static long timeOffset; public final static int unix2afpTime(long ut) { int ret = (int) ((ut - timeOffset) / 1000); return ret; } }