{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/3944","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/3944/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/3944/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/3944/events","html_url":"https://github.com/arduino/Arduino/issues/3944","id":110681975,"number":3944,"title":"AM/PM handling with 12-hour RTC setting?","user":{"login":"damellis","id":405058,"avatar_url":"https://avatars.githubusercontent.com/u/405058?v=3","gravatar_id":"","url":"https://api.github.com/users/damellis","html_url":"https://github.com/damellis","followers_url":"https://api.github.com/users/damellis/followers","following_url":"https://api.github.com/users/damellis/following{/other_user}","gists_url":"https://api.github.com/users/damellis/gists{/gist_id}","starred_url":"https://api.github.com/users/damellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damellis/subscriptions","organizations_url":"https://api.github.com/users/damellis/orgs","repos_url":"https://api.github.com/users/damellis/repos","events_url":"https://api.github.com/users/damellis/events{/privacy}","received_events_url":"https://api.github.com/users/damellis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arduino/Arduino/labels/Architecture:%20SAM","name":"Architecture: SAM","color":"fbca04"},{"url":"https://api.github.com/repos/arduino/Arduino/labels/Library:%20Other","name":"Library: Other","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-09T15:30:48Z","updated_at":"2015-10-19T07:38:17Z","closed_at":null,"body":"If you put the RTC library in 12-hour mode, how does it handle AM and PM? Is there any way to specify whether or not an hour is AM or PM? Or tell, when you get the time, whether it's AM or PM? If not, should we just eliminate 12-hour mode?"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/149128080","html_url":"https://github.com/arduino/Arduino/issues/3944#issuecomment-149128080","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/3944","id":149128080,"user":{"login":"agdl","id":2743774,"avatar_url":"https://avatars.githubusercontent.com/u/2743774?v=3","gravatar_id":"","url":"https://api.github.com/users/agdl","html_url":"https://github.com/agdl","followers_url":"https://api.github.com/users/agdl/followers","following_url":"https://api.github.com/users/agdl/following{/other_user}","gists_url":"https://api.github.com/users/agdl/gists{/gist_id}","starred_url":"https://api.github.com/users/agdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agdl/subscriptions","organizations_url":"https://api.github.com/users/agdl/orgs","repos_url":"https://api.github.com/users/agdl/repos","events_url":"https://api.github.com/users/agdl/events{/privacy}","received_events_url":"https://api.github.com/users/agdl/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T07:38:17Z","updated_at":"2015-10-19T07:38:17Z","body":"@damellis you are right, at the moment, we have no method to understand the time representation, however it ca be simply implemented pollig the control bit RTC_MODE2_CTRL_CLKREPin RTC->MODE2.CTRL.reg (that you set with the rtc.begin(bool timeRep). I also wnt to add methods that returns to you a string for time and date. What do you think about these improvements?"}}