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
What does sampling accomplish? Choose all that
Taya2010 [7]

Answer:

1, 2

Explanation:

8 0
3 years ago
A keyboard would be considered what 2 things
bogdanovich [222]

Answer:

A typing tool and a weapon

Explanation:

8 0
3 years ago
Write 3 things that can't be done without technology.
bulgar [2K]

Answer:

Hacking Online Orders Math

Explanation:

4 0
3 years ago
Read 2 more answers
A short cut to save a file is
Vanyuwa [196]

Answer:

CTRL+S in most programs

8 0
3 years ago
PLEASE HELP !!!! WILL UPVOTE
Gemiola [76]
The answer to this is C :D
5 0
3 years ago
Read 2 more answers
Other questions:
  • 3. Discuss the disadvantages of file-based systems.
    13·1 answer
  • You bought a monochrome laser printer two years ago. The printer has gradually stopped feeding paper. Which printer component sh
    14·1 answer
  • How do you uninstall a program using the Control Panel?
    10·1 answer
  • What is called photo and video edition?
    8·1 answer
  • What are the first two lines of defense a company should take when addressing security risks?
    10·1 answer
  • Why might your digital footprint be important when you are applying for collage
    13·1 answer
  • HI GIVING BRAINLIEST Tyra used the software development life cycle to create a new game. She released it to her friends in order
    14·2 answers
  • Even though a high-level programming language
    11·1 answer
  • Assuming the Direct Hashing function and the Subtraction preprocessing algorithm is used to map keys into indices, give the inde
    15·1 answer
  • Full form of NCP?............
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!