|
TimeSpan
Explain how nimbits understands time span requests IntroductionIn any situation where Nimbits is receiving a text time range - that is a start and end date, submitted as a string, either in the UI or as a request to the WebService, Nimbits will use the same pattern to try and understand what the timespan being requested should be. All Times are stored in a nimbits database as UTC time, Nimbits never modifies a time to adjust for time zones etc. Locales and time zones are adjusted on the UI. A Timespan consists of a start and end. Start is the older date and End is the most recent date. Yesterday would be a start and today would be an end for example. DetailsOne can view TimespanFactory.java which contains the logic for how Nimbits interprets a timespan based on two string inputs. All web services that take a start and end date parameter for get and post request use the format sd=startdate&ed=enddate for a date range. See the Wiki for ChartApiService and SeriesService. End Date Options
Start Date OptionsThe end date is interpreted first so the start date can be processed relative to the end date. Start date can be any of the global options below or:
Global Options
|