Note that there are some explanatory texts on larger screens.

plurals
  1. POProgrammatically getting the date "next Sunday at 5PM"
    primarykey
    data
    text
    <p><strong>Edited 07/08/13: Apple has an excellent set of WWDC videos that really helped me understand the various date and time classes in Objective-C, and how to correctly perform time calculations/manipulations with them.</strong></p> <p><strong>"Solutions to Common Date and Time Challenges" (<a href="http://devstreaming.apple.com/videos/wwdc/2013/227xax5xif2s7s531dsmfs1afo2/227/227-HD.mov?dl=1" rel="nofollow">HD video</a>, <a href="http://devstreaming.apple.com/videos/wwdc/2013/227xax5xif2s7s531dsmfs1afo2/227/227-SD.mov?dl=1" rel="nofollow">SD video</a>, <a href="http://devstreaming.apple.com/videos/wwdc/2013/227xax5xif2s7s531dsmfs1afo2/227/227.pdf?dl=1" rel="nofollow">slides (PDF)</a>) (WWDC 2013)</strong><br> <strong>"Performing Calendar Calculations" (<a href="https://developer.apple.com/videos/wwdc/2011/includes/performing-calendar-calculations.html#performing-calendar-calculations" rel="nofollow">SD video</a>, <a href="https://developer.apple.com/devcenter/download.action?path=/wwdc_2011/adc_on_itunes__wwdc11_sessions__pdf/117performing_calendar_calculations.pdf" rel="nofollow">slides (PDF)</a>) (WWDC 2011)</strong></p> <p><strong>Note: links require a free Apple Developer membership.</strong></p> <p>I'm writing an app for a friend's podcast. She broadcasts her show live every Sunday at 5PM, and I would like to write some code in my app to optionally schedule a local notification for that time, so that the user is reminded of when the next live show is. How would I go about getting an NSDate object that represents "the next Sunday, at 5 PM Pacific time." (obviously this would have to be converted into whatever timezone the user is using)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload