MCQs > IT & Programming > Go (Programming Language) > What is the difference between the time package’s Time.Sub() and Time.Add() methods?

Go (Programming Language) MCQs

What is the difference between the time package’s Time.Sub() and Time.Add() methods?

Answer

Correct Answer: Time.Add() accepts a Duration parameter and returns a Time while Time.Sub() accepts a Time parameter and returns a Duration.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Go (Programming Language) Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Go (Programming Language) Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it