Unable to determine the current timezone "C"

all

I am using R for teaching Azure and I have some problems.

I want to use R program to calculate the difference between two dates, for example 2014/11/01 and 2014/11/03.

I am using the "strptime" function in R to do this, it can run on my own machine, but when I want to run the same code on Azure ml it throws an error.

Mistake:

[ModuleOutput] 1: In strptime(x, format, tz = tz) :
[ModuleOutput] 
[ModuleOutput]   unable to identify current timezone 'C':
[ModuleOutput] 
[ModuleOutput] please set environment variable 'TZ'
[ModuleOutput] 
[ModuleOutput] 2: In strptime(x, format, tz = tz) : unknown timezone 'localtime'

      

I think the problem is that it can't figure out the timezone on Azure ml, but I'm not sure.

Is there a way to solve this problem?

Thanks in advance.

+3


source to share





All Articles