1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alex73 [517]
3 years ago
12

To create a DateTime object that represents a due date that's 90 days after the current date, you use the following code:

Computers and Technology
1 answer:
Helen [10]3 years ago
4 0

If $due_date contains a DateTime object, $due_date_diff will contain  

c. a DateInterval object

Explanation:

  • The DateInterval class ¶  represents a date interval.
  • A date interval stores either a fixed amount of time (in years, months, days, hours etc) or a relative time string in the format that DateTime's constructor supports.
  • The diff method is just as easy to use, but provides an extra piece of information: total days. This is important because when using the DateTime object to find a difference, we have a source and destination date, and therefore we can reduce the units of time into larger denominations. However, having the total number of days in between is a valuable piece of information.
  • The PHP DateTime class has three methods that work with a DateInterval object:
  1. add
  2. sub
  3. diff

Properties

  • y  :Number of years.
  • m  :Number of months.
  • d  :Number of days.
  • h  :Number of hours.
  • i  :Number of minutes.
  • s  :Number of seconds.
You might be interested in
Which of the following operating systems is open source?
IgorC [24]

Google Android OS is correct

8 0
3 years ago
Read 2 more answers
_____ is an effort by an employee to attract attention to a negligent, illegal, unethical, abusive, or dangerous act by a compan
AVprozaik [17]

Answer:

The answer is "whistle-blowing".

Explanation:

Whistleblowing is the organization's disclosure Part of the illegal immoral or existing. Unauthorized actions under the administrative influence. In this the workers, people or organizations operate to perform.

  • The main objective of this initiative is to eliminate non-ethical organizational behavior.  
  • It provides integrity or by being truthful throughout all times, doing all the correct thing is a key element of professional morality and conduct.
4 0
3 years ago
I NEED an example of output plssss​
pentagon [3]
What type of output are u looking for
8 0
3 years ago
The objects that you place on master pages are called _____.
Studentka2010 [4]
The answer to this is A.
3 0
4 years ago
Could someone tell me what this means in python? Thanks
alexandr1967 [171]

a python is a snake not a launguage

3 0
3 years ago
Other questions:
  • Your friends parents are worried about going over their budget for the month. Which explains would you suggest is not a need.
    14·2 answers
  • What does computer means?
    9·2 answers
  • A _____ is a digital media file distributed over the Internet using syndication feeds for playback on mobile devices and persona
    6·1 answer
  • Page _____ refers to whether a page is laid out vertically or horizontally.
    12·1 answer
  • Indicate if the following statements are True or False. Statement Circle one Internet Service Providers (ISPs) are proprietary n
    13·1 answer
  • After a new firewall is installed, users report that they do not have connectivity to the Internet. The output of the ipconfig c
    6·1 answer
  • Complete the procedure for creating a new appointment by selecting the correct answers from the drop-down menus.
    11·1 answer
  • Use a for loop to output the numbers from 50 to 65
    6·1 answer
  • Write an if-else statement that determines whether the variable points is outside the range of 9 to 51. If points is outside the
    13·1 answer
  • Which statements are TRUE about web services protocols? (Select TWO responses) SOAP and REST are both web service communication
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!