Java Milliseconds Parse getTimeMillis(long FileTimestamp)

Here you can find the source of getTimeMillis(long FileTimestamp)

Description

get Time Millis

License

Open Source License

Declaration

public static long getTimeMillis(long FileTimestamp) 

Method Source Code

//package com.java2s;
/*//from  w ww  .  j a  va 2s.co  m
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> 
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
    
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
    
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.
    
You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

public class Main {
    private final static long FT_UT_OFFSET = 116444520000000000L;

    public static long getTimeMillis(long FileTimestamp) {
        FileTimestamp -= FT_UT_OFFSET;
        FileTimestamp /= 10000;
        FileTimestamp -= 14 * 60 * 60 * 1000;
        return FileTimestamp;
    }
}

Related

  1. changeMillSecond2Date(long millSeconds)
  2. getTimeAsMillis(String value)
  3. getTimeFromMilliseconds(long ms)
  4. getTimeInMilliseconds(String timeString)
  5. getTimeMillis(String time)
  6. parseDate(long millisec)
  7. parseGMTInMillis(String time)
  8. parseMillis(String s)