与守望者有问题

时间:2016-05-30 22:14:31

标签: watchman

有人能告诉我如何从linux终端删除守望者吗?要尝试不同的nodewatcher。我试过“sudo apt-get --purge remove watchman”,但是没有用。

1 个答案:

答案 0 :(得分:0)

如果您是从源代码构建的。

通常你可以使用:

var xmlDate = "03/20/17";
DateTime orderDate;

// The first 'TryParse...' that succeeds will store the parsed date in 'orderDate'
if (!DateTime.TryParseExact(xmlDate, "M/d/yyyy", new CultureInfo("en-US"),
    DateTimeStyles.None, out orderDate))
{
    if (!DateTime.TryParseExact(xmlDate, "M/d/yy", new CultureInfo("en-US"),
        DateTimeStyles.None, out orderDate))
    {
        if (!DateTime.TryParse(xmlDate, out orderDate))
        {
            // Couldn't parse, so use a default date, or log an error..?
            orderDate = DateTime.Today;
            Console.WriteLine($"Error: Unable to convert to date: {xmlDate}");
        }
    }
}

Console.WriteLine($"Order date: {orderDate.ToString("MM/dd/yyy")}");

make uninstall

如果应用是以root用户身份安装的。 来自构建目录。