Reputation: 45
I am trying to store and retrieve three datetime columns on azure table storage. Start date, End date and Last Executed date.
I have another fourth column which is called timeIntervalInMinutes. My code execution will happen on an azure VM which might be on any zone in US.
I am going to use these values to execute some task based on current time:
There are few doubts that I have:
Please help.
Upvotes: 0
Views: 1682
Reputation: 5883
The OP wrote in a comment:
I have solved this by adding entity properties with DateTimeOffset type and created separate fields for holding UtcOffset timespan value as ticks (long type). With this I can compare the UTC format timestamp with UtcOffset values and date as well for my scheduler to work. So it's now easy for me to query against date and as well as retrieve and present the user back with his / her own specified local time.
Upvotes: 1