cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Onjai
Level IV

Column formula to round timestamp to nearest minute

Hi,

Looking for a column formula to round timestamp to nearest minute. 

27/06/2017 12:21:13 PM  need to round to 27/06/2017 12:21:00 PM.

Any suggestions?

Cheers.

2 ACCEPTED SOLUTIONS

Accepted Solutions
jules
Community Manager Community Manager

Re: Column formula to round timestamp to nearest minute

Hi @Onjai,

I'm sure there are other ways to approach this, but I've had luck with the following when I've needed to do that (this requires that you have a numeric :DateTime column):

 

Round(:DateTime / 60) * 60

(Edited: replaced with the simpler formula pointed out by Jerry)

 

Hope this helps!

@jules

 

 

View solution in original post

Onjai
Level IV

Re: Column formula to round timestamp to nearest minute

I am using the latest version of JMP.  The transform worked as well.

Thank you!

View solution in original post

5 REPLIES 5
jules
Community Manager Community Manager

Re: Column formula to round timestamp to nearest minute

Hi @Onjai,

I'm sure there are other ways to approach this, but I've had luck with the following when I've needed to do that (this requires that you have a numeric :DateTime column):

 

Round(:DateTime / 60) * 60

(Edited: replaced with the simpler formula pointed out by Jerry)

 

Hope this helps!

@jules

 

 

Onjai
Level IV

Re: Column formula to round timestamp to nearest minute

Julian,

This worked just fine.

Thank you.

 

jerry_cooper
Staff (Retired)

Re: Column formula to round timestamp to nearest minute

Hi Onjai,
If you're using version 14, you can right-click the heading of your Timestamp column, select New Formula Column->Transform->Round. You'll then get a dialog box to set the desired parameters (because you're wanting to round to the nearest minute, you'll just need to select "Nearest" from the dropdown and click OK). This is the resulting formula:
Round(:Timestamp / 60) * 60
Onjai
Level IV

Re: Column formula to round timestamp to nearest minute

I am using the latest version of JMP.  The transform worked as well.

Thank you!

Re: Column formula to round timestamp to nearest minute

:Time Stamp - Modulo( :Time Stamp, 60 );

Recommended Articles