Visualizzazione dei risultati da 1 a 2 su 2

Discussione: oraio e data

  1. #1

    oraio e data

    perche con questo script mi spunta l'oraio un'ora avanti?

    onClipEvent (load) {
    days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday');
    months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
    timedate = new Date();
    }
    onClipEvent (enterFrame) {
    meridian = "AM";
    hour = (timedate.getHours());
    minutes = timedate.getMinutes();
    seconds = timedate.getSeconds();
    todaydate = timedate.getDate();
    day = timedate.getDay();
    dayname = days[day];
    month = (timedate.getMonth()+1);
    monthname = months[month-1];
    year = timedate.getFullYear();
    if (hour=12) {
    meridian = "PM";
    }
    if (hour>12) {
    hour = hour-12;
    meridian = "PM";
    }
    if (length(minutes) == 1) {
    minutes = "0"+minutes;
    }
    if (length(seconds) == 1) {
    seconds = "0"+seconds;
    }
    currenttime = hour+":"+minutes+":"+seconds+" "+meridian;
    currentdate = todaydate+"/"+month+"/"+year;
    fulldate = dayname+", "+monthname+" "+todaydate+", "+year;
    delete timedate;
    timedate = new Date();
    }
    yah man...
    MY SITE
    MY SITE

  2. #2
    veramente non mi funziona da sempre un orario diverso, mi viene il dubbio che lo script sia giusto, a me serve solo far visualizzare la data e l'orario

    HELP ME PLEASE
    yah man...
    MY SITE
    MY SITE

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.