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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:37:23+00:00 2026-06-15T09:37:23+00:00

How to store system time in minutes in a variable in stored procedure of

  • 0

How to store system time in minutes in a variable in stored procedure of PL/SQL?

I want to store system date in minutes in a variable of stored procedure.

  • 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-15T09:37:24+00:00Added an answer on June 15, 2026 at 9:37 am

    How to store system time in minutes in a variable

    You can use localtimestamp function to get current date and time in a session timezone, extract hours, minutes, seconds and based on those data calculate value for minutes.

    SQL> declare
      2    l_val number;
      3  begin
      4    l_val := (extract(hour from localtimestamp) * 60) +
      5              extract(minute from localtimestamp) +
      6             (extract(second from localtimestamp)/60);
      7   dbms_output.put_line(to_char(sysdate, 'hh24:mi:ss" = "') || concat(to_char(l_val, 'fm99990.00'),' minutes'));
      8  end;
      9  /
    
    09:52:26 = 592.44 minutes
    
    PL/SQL procedure successfully completed
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with the system function. I want to store the system
I am coding ib Visual Basic. I need to store the current system time
I have a stored procedure that executes much faster from Sql Server Management Studio
I am planning to build a cassandra store system and also I need a
Android System has a builtin certificate Store. The certificates from this store are for
I am using System.Data.SQLite to store my program's data and settings (in a WPF
I am creating a system that will store objects in an SQLite Database. I
We have a system were we would like to store about 100M documents. We
I'm developing a system which needs to store videos in the form: /path/to/video/<md5 of
I'm trying to make a system call in Python and store the output to

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.