Home / MCQ Bank / Computer
Computer Working With Dates And Times In Ruby

What does the utc method do for a Time object in Ruby?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • Converts the Time object to Coordinated Universal Time (UTC)

Related Computer Questions

Which of the given C function can be used instead of the apparent identity pointed to by y? int x=1; double y= 0.5 * (exp (x) + exp (-x)); Which of the following constructor of class Thread is valid one? What is the recommended indentation style in Ruby? Which of the following tree traversals work if the null left pointer pointing to the predecessor and null right pointer pointing to the successor in a binary tree? What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; class A{ mutable int a; public: A(){ cout<<"Default constructor called\n"; } A(const A& a){ cout<<"Copy Constructor called\n"; } }; int main(int argc, char const *argv[]) { A obj; A a1 = obj; A a2(obj); }