Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: php annotations

    Quote Originally Posted by adb34 View Post
    I found the code on the W3 Schools website. The thing with your statement 12:01 is greater than 12:00
    So where time = d.getHours(); if it is 12:01 then time will be 12:01 and not just 12?

    I'm sorry that I don't have the solution specifically, but am trying to understand and to close what looks like the issues. In looking for a way to present the time to a customer I was surprised to find code on stackexchange indicating that it was necessary to convert the returned date() value to the time local to the user as java/javascript is supposed to be all about the user's side. But not infallible resources. No conversion appears to be necessary for the date/time, but d.getHours() will return a whole number and therefore between 12:00 and 12:59 the. Variable time will equal 12 which is not specifically captured in the above code.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: php annotations

    Quote Originally Posted by mc12345678 View Post
    So where time = d.getHours(); if it is 12:01 then time will be 12:01 and not just 12?

    I'm sorry that I don't have the solution specifically, but am trying to understand and to close what looks like the issues. In looking for a way to present the time to a customer I was surprised to find code on stackexchange indicating that it was necessary to convert the returned date() value to the time local to the user as java/javascript is supposed to be all about the user's side. But not infallible resources. No conversion appears to be necessary for the date/time, but d.getHours() will return a whole number and therefore between 12:00 and 12:59 the. Variable time will equal 12 which is not specifically captured in the above code.
    All true and I do appreciate all your help on all topics. I think I will put this on hold until I have sorted out the other stuff that is needed E.G. cookie control Etc.
    Learning Fast.
    Eden Craft Supplies

 

 

Similar Threads

  1. Welcome Greeting - Choosing the salutation for the first or last name
    By Peace Freak in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 13 May 2013, 10:04 AM
  2. v150 changing the position of greeting text
    By zzahid in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Mar 2012, 01:24 AM
  3. changing user greeting
    By Mrchristoh in forum General Questions
    Replies: 3
    Last Post: 23 Jun 2009, 11:07 PM
  4. Replies: 2
    Last Post: 12 Sep 2007, 05:34 AM
  5. Changing the link of the Greeting message
    By KaeFeE in forum General Questions
    Replies: 4
    Last Post: 6 Feb 2007, 10:58 PM

Posting Permissions

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