what is the "start" and "end" date format? | ThingSpeak API | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.
Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
what is the "start" and "end" date format?
No permission to create posts
July 12, 2011
6:04 pm
Avatar
jbeale
Northern California

Silver
Members
Forum Posts: 7
Member Since:
May 9, 2011
sp_UserOfflineSmall Offline

The ThingSpeak API page at

http://community.thingspeak.com/documentation/api/#thingspeak_api

 

mentions that you can request data with a "start" and "end" parameter, which take a "date" argument. I cannot find an example of the format for the date, and there are many possibilities, some of which I think would not be valid in a URL. Can someone post an example of a valid start date format?

 

For example, how would I properly complete this url?

 

http://api.thingspeak.com/channels/627/charts/2?timescale=10&width=600&height=400&start= ???

July 12, 2011
8:02 pm
Avatar
Hans
Natick, MA

Admin
Forum Posts: 411
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

Time format is as follows: 2011-07-09 00:00:00 (%20 is an encoded space) - that's year, month, date, hours, minutes, seconds - all 2 digits long.

Example: http://api.thingspeak.com/channels/627/charts/2?timescale=10&width=600&height=400&start=2011-07-08%2000:00:00&end=2011-07-09%2000:00:00

July 13, 2011
3:29 pm
Avatar
jbeale
Northern California

Silver
Members
Forum Posts: 7
Member Since:
May 9, 2011
sp_UserOfflineSmall Offline

Ha ha, it works!  Now I can see the older data, which I thought was lost and gone forever. Thank you for the info.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
26 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

Advantagetreeexperts, laundrydaddyuk, techhhelp5, ken, tran, huldacormier

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457