Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

<#update>?

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

<#update>?

Post by n9mfk »

hi Steve,
how do i get <#update> in 24 hour time
thanks beau
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: <#update>?

Post by steve »

It uses a system function to convert the current date and time to a string, so it uses whatever settings your PC is using. There's no way to change it currently (without changing your Windows settings), but I'll be putting more control over date and time formatting in Cumulus 2.
Steve
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: <#update>?

Post by gemini06720 »

Or...

If PHP is available on your Web server, you could use a PHP function that would convert a time format into a pre-selected time format...

Such as converting from '4:30 pm' to '16:30'
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: <#update>?

Post by n9mfk »

Hi Ray here my list
http://www.n9mfk.com/tags.php?sce=view
how wood you convert $update thanks beau
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: <#update>?

Post by beteljuice »

If you want the time converted to 24:00:00

Code: Select all

<?php
....
$update = "9/3/2009 8:05:32 PM";
$newupdate = date('H:i:s', strtotime($update));
....
?>
Image
......................Imagine, what you will KNOW tomorrow !
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: <#update>?

Post by n9mfk »

i had test an the only thing was that the date is lost all look at it tomorrow
http://www.n9mfk.com/testpage.php beau
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: <#update>?

Post by beteljuice »

Right - you didn't say how much information in what format you wanted :)

Look here:

http://us2.php.net/manual/en/function.date.php

You can output it pretty much any way you can think of !
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply