eignert

Convert TimeStepString to TimeSpan

Discussion created by eignert on Nov 16, 2011
Latest reply on Dec 8, 2011 by eignert

Hi,

 

I've read through the PITimeserver help but could not find an easy way to convert a timestep string as "30s" or "10d" into a .Net type TimeSpan...
Is there a best practice for achieving this? I'd need this functionality to split a time range for a query into multiple intervals and therefor I need to know this timestep...
I think the "ParseTimeStepString" method could be a good start but how do you recommend to use it?

 

Regards
Thomas

Outcomes