public static String getMCTimeString(long var0, long var2)
    {
        long var4 = (long)((int)((var0 / 1000L + 6L) % 24L));
        int var6 = (int)((double)(var0 % 1000L) / 1000.0D * 60.0D);
        boolean var7 = var4 < 12L;
        var4 %= var2;
        String var8 = "";

        if (var2 == 24L)
        {
            var8 = (var4 < 10L ? "0" : "") + String.valueOf(var4);
        }
        else
        {
            var8 = String.valueOf(var4 == 0L ? 12L : var4);
        }

        String var9 = (var6 < 10 ? "0" : "") + String.valueOf(var6);
        return var8 + ":" + var9 + (var2 == 12L ? (var7 ? "AM" : "PM") : "");
    }