Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8889449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:15:59+00:00 2026-06-14T22:15:59+00:00

Background: I am building a simple chat program for iOS/Android. On the backend is

  • 0

Background:

I am building a simple chat program for iOS/Android. On the backend is an equally simple PHP/MySQL server that handles the messages. In some cases messages need to be delayed and not sent immediately. To handle this function I an sending messages via HTTP to a server that schedules when messages will be released. The format that it follows is below:

http://www.company.com:8899/?Env=env&AppName=####&Token=string
&Message=string&ScheduleDate=2010-08-31%2022:10:34%20-0400
&ScheduleAction=action

The most relevant part of the URL for this question is ScheduleDate which specifies the time/date that the message will be sent

Question:

I am having trouble getting the current date/time, putting it in the required format (YYY-MM-DD HH:MM:SS) and then accounting for the required delay. What I want to do is:

(1) get the current date/time
(2) add 5 minutes
(3) put it back into that URL string

Here is the segment with which I am building the string. I used $roomCreateDate to try and get the current date just to see if I could build the string without accounting for the delay. $comand should build the string to match the format above.

$roomCreateDate = date("Y-m-d H:i:s");

$command =  'localhost:8899/'.
                '?Env='. environment($appversion) .
                '&AppName=EchoFriendly'.
                '&Token=' . $devicetoken .
                '&Message=' . urlencode($apsPayload) .
        '&ScheduleDate=' . urlencode($roomCreateDate) .
        '&ScheduleAction=add';

Any help is appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:16:00+00:00Added an answer on June 14, 2026 at 10:16 pm
    $roomCreateDate = date("Y-m-d H:i:s", strtotime('+5 minutes'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently building a simple application on Gjs , which should change the background-image
Background: We're building an application that allows our customers to supply data in a
Background: I'm building a small application that will be run daily, pulling data from
Background I'm working on building an ASP.Net MVC 3 application that utilizes: JQueryUI for
Background: I'm currently looking into building an Android VoIP app for work (we sell
I am building a simple wpf application. The gui has a button, that when
Background: I'm building a simple blog using Padrino, Ruby 1.9.2, HAML, and Heroku. I
Some background I'm currently building a predominantly classic web app (rather than a single
I'm building a simple line chart with matplotlib, and I'd like to zebra-stripe the
I'm building a simple ControlTemplate for a Button. I want to draw a 2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.