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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:17:57+00:00 2026-05-11T03:17:57+00:00

I am writing an app that allows people to schedule things for certain times

  • 0

I am writing an app that allows people to schedule things for certain times and then displays them. The time of the event is stored in the database as an SQL TIME, because there are things I’m doing in the DB that need this structure.

However, on the output page I want the time to be in 12:00 am/pm format, but I don’t want to run a conversion script every time I step through the database output loop. I don’t want this:

while (database loop){ convert to clean time output event info, with clean time } 

because I think it is too much strain and unneccesary. Is there a way to do this better short of storing the time in the db twice (once in 24 hour and once in 12)?

  • 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. 2026-05-11T03:17:57+00:00Added an answer on May 11, 2026 at 3:17 am

    The output page is your presentation layer. Don’t mix up presentation issues into the database layer. Especially don’t force a denormalisation just for presentation’s sake.

    i dont want to run a conversion script every time i step through the database output loop

    Whyever not? Depending on what language you’re using it shouldn’t be any more work than just sending the time through a strftime() operation before plonking it onto the page. It’s not going to be slow.

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

Sidebar

Related Questions

I'm writing an app that allows the user to make a photo and then
I'm writing an app that allows people to set alarms for various tasks that
I'm writing an app that allows you to script the buttons from a wiimote
I am writing an app that allows user to view the list of installed
I am writing an iPhone app that allows you to browse images in one
I am writing an app that allows a user to access their corporate voice
I'm writing a web app that at one point allows a user to upload
I'm writing a simple App Engine app. I have a simple page that allows
Hi Im writing an app that allows users to post status updates from within
I am writing an app that allows a user to set the phone's wallpaper

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.