today.zip

How to get the duration between days in PHP

426

Following is the funcation can calculate the duration, actually number of days between the given parameters (from,to). The argument must be subclass of DateTime.  

Basic Date Display

517

Use this code snippet to display today's date on your Web page 

Word counting source program based on MapReduce framework

692

The MapReduce framework operates exclusively on  pairs, that is, the framework views the input to the job as a set of paris and produces a set of pairs as the output of the job, conceivably of different types. Below is the simple application that...

How to set and get sessions on JSP code ?

1,040

Here's the simple example to set and put sessions.save_my_name,jsp.save_my_name.jsp saves the user's name in the session,and puts a link to another page,next_page.jsp.next_page.jsp shows how to retrieve the saved name.next_page.jsp.

How to add a declaration on JSP code ?

1,128

If you have developed C or C++ program,you may know below examples. Above code have no bug,but no code will be compiled,because it's all declarations.In JSP,you can make declarations as well.In some documents,a declarations is also called as remark.To add ...

How to include file in JSP ?

1,254

Just like ASP,or PHP,JSP is also allow to include for programmer by include function.Here's the simple example.

How to print out text strings on HTML directly ?

907

In JSP, you can print out text strings by out.println(). Here's the example. <%    / / This scriptlet declares and initializes "date"    System.out.println( "Evaluating date now" );    java.util.Date date = new ...

How to convert formatted date time string to datetime?

450

Whatever the formatted string is,strtotime() function convert the formatted date time string to datetime.Following example shows the simple reference can convert date time string whatever the formatted input is.

Adding and Subtracting Time

562

The time () function generates a long string of numbers representing how many seconds have passed since January 1, 1970. It is possible to add and subtract time by adding and subtracting seconds.

Send An Email Using A Bean

1,018

This JSP snippets shows how to send an email using a reuasable javabean.SendMailBean.java. InputForm.jsp .

Javascript based Alarm Clock

677

IE Only) Set an alarm that will play any sound from your computer.You can even select a snooze time after it sounds.Awesome! .

Javascript implemented Calendar

424

Nice calendar for Web page display. Highlights the date and the day of the week. Well-documented code to help you customize any font,color,or size you want.< / sc...

Example Of Creating Objects

404

an example of creating object in javascript,taken from http: / / www.wdvl.com / Authoring / JavaScript / Tutorial / objects.htmldirect instance of an objectDespite the awkward sound name, a "direct instance of an object" simply means creating a new single...

Linking Drop Downs

578

Linking drop downs is a frequent question. Here is a javascript based example