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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:43:00+00:00 2026-05-14T00:43:00+00:00

I have several thousand objects with a string property in the format of yyyy-MM-ddTHH:mm:ssZ

  • 0

I have several thousand objects with a string property in the format of "yyyy-MM-ddTHH:mm:ssZ". I want to sort these objects by time.

Are there any useful packages or scripts for this?

(Currently I’m just comparing individual numeric values and it seems it’s not very efficient and neat.)

  • 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-05-14T00:43:00+00:00Added an answer on May 14, 2026 at 12:43 am

    You can use Time::Local to convert your date to timestamp or one of the Date:: modules from cpan. You can have a look at this to see what is available.

    Also notice that with the above format sorting the objects lexicographicaly would also do the trick (even if probably somewhat slower than comparing numbers, but initial conversion has it’s cost).

    Be careful if you use dates from throughout the world because you may encounter sort problems with timezone and daylight savings. If all datetimes are in the same place that should be OK.

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

Sidebar

Related Questions

Requirements : I have a table of several thousand questions. Users can view these
I have around several hundreds of moving objects within screen at the given time,
I have several thousand log files with date-time stamps in them that mark certain
We have a CMS which has several thousand text/html files in it. It turns
I have a table (table variable in-fact) that holds several thousand (50k approx) rows
I have several xml files with different node structure. I want to extract xml
hey guys, we have a loop that: 1.Loops over several thousand xml files. Altogether
I have a Canvas, to which I've added several thousand polygons. I would like
I have several thousand quads to draw, some of which might fall entirely outside
I have written a basic script that imports several thousand values into a Django

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.