GMT to Local Time Routine


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Location
    Quebec, Canada
    Posts
    67


    Did you find this post helpful? Yes | No

    Default Re: GMT to Local Time Routine

    Great! So you are using http://www.timeanddate.com as your time source? At home a setup a HTML page on my Windows Home Server with minimal headers giving me the current datetime but it's not available outside my network. For my lawnmower project I use my cellphone internet sharing because my router is in the basement and I had connections problems. This prevents me from getting the time to my server. That's why is was asking.


    Code:
    <%
    response.write("*" & Format(now, "yyyy-MM-dd HH:mm:ss") & "J")
    
    select case Format(now, "ddd")
    	case "Sun"
    		response.write("1")
    	case "Mon"
    		response.write("2")
    	case "Tue"
    		response.write("3")
    	case "Wed"
    		response.write("4")
    	case "Thu"
    		response.write("5")
    	case "Fri"
    		response.write("6")
    	case "Sat"
    		response.write("7")
    	case else
    		response.write("0")
    end select
    response.write("*" & VbCrLf)
    
    %>
    and the output looks like this:

    Code:
    *2015-08-19 22:33:18J4*
    It's easy to parse and I have DST, date and day number but it's limited to my local network... till I find a free ASP hosting...

    Thanks for sharing!

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: GMT to Local Time Routine

    No, The string comes from the ESP8266 as:

    107 15 Jul 2015 18:57:01 GMT

    The ESP8266 gets it from Google.com

Similar Threads

  1. local exchanges
    By datacomms in forum Ethernet
    Replies: 1
    Last Post: - 28th March 2022, 23:21
  2. Simple "Time-out" routine
    By JacoMuller in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th May 2010, 10:16
  3. Internet-Ethernet and Local Net
    By Ioannis in forum General
    Replies: 15
    Last Post: - 7th January 2008, 22:16
  4. local variables
    By BigWumpus in forum PBP Wish List
    Replies: 2
    Last Post: - 11th April 2006, 00:39
  5. RTC 1302 !!! Set time Routine !!
    By uludere72 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th February 2006, 10:28

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts