Feeds:
Posts
Comments

Archive for July, 2008

getSeconds() and getMIlliseconds() return the seconds and milliseconds values.
<SCRIPT LANGUAGE=”JAVASCRIPT”>
<!–
var d = new Date();
var curr_hour = d.getHours();
var curr_min = d.getMinutes();
var curr_sec = d.getSeconds();
var curr_msec = d.getMilliseconds();
document.write(curr_hour + “:” + curr_min + “:”
+ curr_sec + “:” + curr_msec);
//–>
</SCRIPT>

Read Full Post »

In order to retrieve the current system time, we can use the static property “Now” of the ” DateTime” class. For example the following two lines of code
DateTime currentSystemTime = DateTime.Now;

Console.WriteLine(currentSystemTime);

print out something like this:

4/7/2008 4:05:35 PM

Read Full Post »

The String class has a split() method, that will return a String array.
Example 1:
public class StringSplit {
public static void main(String args[]) throws Exception{
new StringSplit().doit();
}

public void doit() {
String s3 = “Real-How-To”;
String [] temp = null;
temp = s3.split(“-”);
dump(temp);
}

public void dump(String []s) {
System.out.println(“————”);
for (int i = 0 [...]

Read Full Post »

DCOM dynamically allocates one port per process. You need to decide how many ports you want to allocate to DCOM processes, which is equivalent to the number of simultaneous DCOM processes through the firewall. You must open all of the UDP and TCP ports corresponding to the port numbers you choose. You also need to [...]

Read Full Post »