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 7944741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:38:37+00:00 2026-06-04T00:38:37+00:00

When I return a JSON format of created_at & updated_at from MongoMapper, this is

  • 0

When I return a JSON format of created_at & updated_at from MongoMapper, this is an example of what I see

"updated_at\":\"2012-04-25T16:25:05Z\"

What is the T (time?) and Z at the end?

 irb(main):009:0> Story.last.created_at
  DEBUG - MONGODB (0ms) prototype_development['stories'].find({}).limit(-1)
=> 2012-04-25 16:24:26 UTC
irb(main):010:0> Story.last.created_at.to_s
  DEBUG - MONGODB (0ms) prototype_development['stories'].find({}).limit(-1)
=> "2012-04-25 16:24:26 UTC"
irb(main):011:0> JSON.parse(Story.last.to_json)['created_at']
  DEBUG - MONGODB (0ms) prototype_development['stories'].find({}).limit(-1)
=> "2012-04-25T16:24:26Z"
  • 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-04T00:38:40+00:00Added an answer on June 4, 2026 at 12:38 am

    This is a standardized time format – ISO8601.

    Hit this in irb:

    > require 'time' #=> true
    > Time.now.utc.iso8601 #=> "2012-05-11T01:28:51Z"
    

    From Wikipedia:

    The UTC time zone is sometimes denoted by the letter Z—a reference to
    the equivalent nautical time zone (GMT), which has been denoted by a Z
    since about 1950.
    The letter also refers to the “zone description” of zero hours, which
    has been used since 1920 (see time zone history). Since the NATO
    phonetic alphabet and amateur radio word for Z is “Zulu”, UTC is
    sometimes known as Zulu time. This is especially true in aviation,
    where Zulu is the universal standard. This ensures all pilots
    regardless of location are using the same 24-hour clock, thus avoiding
    confusion when flying between time zones.See list of military
    time zones for letters used in addition to Z in qualifying time zones
    other than Greenwich.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to return a JSON with this format: {answers: [{id: 93, value:Ahstron}, {id=94,
I'm trying to return json content read from MySQL server. This is supposed to
When the time return from ajax, I should return as json encode, and use
What's the best way to return a Java Map using the JSON format? My
Why does my cfc method (when returning JSON format or called via remoting) return
My C# web method uses JavaScriptSerializer to return a JSON object in string format
I'm making call to Alfresco Webscripts which return JSON. I do this using GET
How can I get the array values return by a Json format in twitter.
I have a php query the returns the following JSON format from a table.
I find myself needing to return various JSON results to the client from my

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.