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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:29:21+00:00 2026-06-18T22:29:21+00:00

I have a timestamp data that has the following structure where the the date

  • 0

I have a timestamp data that has the following structure where the the date and time are presented in the following way:

timestamp
January 22,2013 20:56
January 22,2013 08:53
January 22,2013 20:59

What can I do to make this into a time object in R?
I was going to write a perl script to transform the data into YEAR-MONTH-TIME HH:MM:SS format and use POSIXct to import it into a date-time object, but i was wondering if there is a shortcut to do so in R.

  • 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-18T22:29:22+00:00Added an answer on June 18, 2026 at 10:29 pm

    You can use strptime

    strptime('January 22,2013 20:56','%b %d,%Y %H:%M')
    [1] "2013-01-22 20:56:00"
    

    PS: this depends of your local:

    Sys.setlocale('LC_TIME','FRENCH')
    [1] "French_France.1252"
    
    strptime('January 22,2013 20:56','%b %d,%Y %H:%M')
    [1] NA
     Sys.setlocale('LC_TIME','ENGLISH')
    [1] "English_United States.1252"
     strptime('January 22,2013 20:56','%b %d,%Y %H:%M')
    [1] "2013-01-22 20:56:00"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mongo table that has statistical data like the following.... course_id status
I have some data that is stored in a TIMESTAMP(6) WITH TIMEZONE column in
I have an iPhone app. that is receiving data with IRFC 3339 timestamp format
I have following query and data saved in a MySQL database with a timestamp
I have a Timestamp field in a WebSQL database that is stored like: /Date(1340420400000)/
I have a Gridview that has a timestamp as one of the rows. When
I'm working on a ECG data that basically has the following schema Col 1
I have an app that pulls data from a server where the timestamp is
I have a Database that has the following relations: Transaction->Purchase->Item->Schedule Transaction - self explanitory
I have a table that has duplicate data for the same user_id. I need

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.