Time

PHP - Simple Facebook "Time Ago" Feature

Submitted by razormist on
Learn on how to create Simple Facebook Time Ago using PHP. This code can compressed multiple files at the same time. PHP is a server-side scripting language designed primarily for web development. Using PHP, you can let your user directly interact with the script and easily to learned its syntax. It is mostly used by a newly coders for its user friendly environment.

Javascript - Simple Digital Clock

Submitted by razormist on
Learn on how to create a Simple Digital Clock using Javascript. avaScript is a scripting or programming language that allows you to implement complex things on web pages. It is widely used in designing a stunning website. It is an interpreted programming language that has a capabilities of Object-Oriented. This code can be used as your calculator to any mathematical problem.

Date and Time of Last Visit

Submitted by alpha_luna on
This is simple script record which displays the date and time of your visitor's last visit. It will display when the user returns to your site. If it is your visitor's first visit to your site, a greeting message will be shown. You can customize the message to be displayed on your site. It will display the message, date and time of the user's last visit to the site.

Animation Duration in CSS

Submitted by alpha_luna on
In this tutorial, we are going to learn about animation-duration. So, what is animation-duration? The animation-duration property specifies how many seconds or milliseconds an animation takes to complete one cycle. This property has a syntax: animation-duration: time | initial | inherit ; Property Values time - it specifies the length of time an animation takes to finish. The default value is

PHP Date and Time

Submitted by alpha_luna on
In this tutorial, we are going to learn about PHP Date and Time. Date and time are part of our everyday lives. PHP also provides this tools to make it work the dates and time easier. These functions allow you to get the date and time from your server where the PHP scripts are running. Then, you can use these functions to format the date and time in some ways. Note: These function it depends on your settings of your server. Installation: No need installation for these functions.

The PHP Date() Function

The PHP date() function formats a timestamp, so they are more likely human readable.

Syntax

date(format,timestamp) format - This is required field and the timestamp must be in specific format. timestamp - This is optional field and it also specific timestamp and the current date and time is default.

Simple Date

Here are commonly used of characters for dates: d - stand for the days of the month (01 - 31) m - stand for a month (01 - 12) Y - stand for a year; like (2010) (four digits) l (this is lowercase of L) - stand for the days of the week And, there are other characters can also be used for adding additional format in dates like "/", ".", or "-".

Example

This is the image result of the code below: date
  1. <?php
  2. echo "Today is " . date("l") . "<br>";
  3. echo "The date today is " . date("Y/m/d") . "<br>";
  4. echo "The date today is " . date("Y-m-d") . "<br>";
  5. echo "The date today is " . date("Y.m.d");
  6. ?>
Another example, these function used to automatic update the copyright year of your website. This is the image result of the code below: copyright

Digital Clock

Submitted by Erick_Ny on
Simple Digital Clock in java swing. This app might can help you to create time and date using timer. You can also move this application by clicking the frame. To exit, double click on the frame. If you find this code useful, send me a feedback.

Date and Time

Submitted by GeePee on
Introduction: This page will teach you about using the Date import in Java to output or get the current Time and/or Date. When is this needed? Adding a simple clock or date counter to an application adds a slightly more professional look to the overall appeal of the program, as well as having the time handy is always a good thing. What imports are needed? The imports we need to get the current Date and Time are;

If, Else and Else If Statements

Submitted by GeePee on
Introduction: Hello. In this tutorial you will learn about the if, else and else if statements. When are these statements used? The if statement is used to check if certain conditions are true. For example, just like we would say in English, if the time of day is noon we should eat lunch, else we shouldn't. So, what is else if? Since the if statement is used to check if certain conditions are true and else is for the opposite, what else do we need? To be able to check multiple times if certain conditions are true, but not the same.