Main > Free Download Search >

Free ctime software for linux

ctime

Sponsored Links
Sponsored Links
Sort by >> Relevance
rss
Secleted [ 0 ] software to compare
Results 1 - 15 of about 7
mod_daytime 0.01

mod_daytime 0.01


mod_daytime Apache module is a RFC-867-compliant Daytime service. more>>
mod_daytime Apache module is a RFC-867-compliant Daytime service.

Multi Protocol Support is one of the most important new features in Apache 2: The server is able to handle other TCP network services than just HTTP. As an example, the default distribution of Apache 2 HTTPD contains the mod_echo module that implements the Echo protocol. This standard TCP service answers any request by returning its complete contents. As a result, it can be helpful in testing network connections.

Based on the source code of mod_echo, I have written the mod_daytime module. It implements the Daytime Service according to RFC 867. This service answers any request by sending the current date and time. The RFC doesnt specify a format; this implementation is using ctime(3).

It is usually recommended to create a virtual host that works as a Daytime server exclusively. You might configure it for TCP port 13 on which the Daytime Service listens by default. The configuration to achieve that looks like this:

# Listen on Port 13
Listen 13

< VirtualHost *:13 >
ProtocolDaytime On
< /VirtualHost >

The first thing you need to do, however, is compile the source code provided here. On a UNIX system where Apache 2 has been installed with DSO support, you can simply type the following command (as root):

# [/path/of/apache/bin/]apxs -cia mod_daytime.c

This will create the DSO file mod_daytime.so, copy it into the Apache installations /modules directory, and add the following directive for loading the module to httpd.conf:

LoadModule daytime_module modules/mod_daytime.c
<<less
Download (0.003MB)
Added: 2006-05-19 License: The Apache License 2.0 Price:
1254 downloads
App::datetime 0.964

App::datetime 0.964


App::datetime is a date and time considerations. more>>
App::datetime is a date and time considerations.

Most Enterprise development includes processing of dates and times. There are many date and time modules on CPAN, and choosing the right one can be confusing. There are no special perl data types for dates and times, so some direction is needed.

The short answer is that we recommend the following for most common date and time operations.

Class::Date
Class::Date::Rel

However, other modules are appropriate in certain circumstances. So for the longer answer, read on.

PERL 5 LANGUAGE SUPPORT

The native Perl 5 datetime type is an integer. It is not different from other integers in any way other than how it is used. It represents the number of non-leap seconds since January 1, 1970 UTC (the "Epoch" at GMT). The following internal Perl function gets the current time.

$current_time = time;
$current_time = time();

Other Perl functions that return this "datetime" integer are

($dev, $ino, $mode, $nlink, $uid, $gid, $redev, $size,
$atime, $mtime, $ctime, $blksize, $blocks) = stat($filename);
($dev, $ino, $mode, $nlink, $uid, $gid, $redev, $size,
$atime, $mtime, $ctime, $blksize, $blocks) = lstat($filename);

where $atime, $mtime, and $ctime are the same kind of integers, representing the access time, modification time, and change time of a file.

These $time values may be converted to human-readable form using the following internal perl functions. (See the "perlfunc" man page for more information.)

($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($time);
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($time);

Furthermore, the current time zone needs to be accessed through the environment variable, "TZ".

$timezone = $ENV{TZ};

This leaves the Perl developer with lots of work to do in order to process dates.

Formatting dates for output

Parsing dates on input

Comparing dates

Date math (addition, subtraction)

Other calendar-specific functions (i.e. holidays, days of week, etc)

Numerous modules have been posted to CPAN allowing the Perl developer to accomplish these tasks. However, they have pros and cons related to the following features.

Internationalization

Speed

Portability

Ranges of Dates Supported

Compliance with Perl Styleguide (function naming)

<<less
Download (0.12MB)
Added: 2006-10-17 License: Perl Artistic License Price:
1102 downloads
DateTime::Precise 1.05

DateTime::Precise 1.05


DateTime::Precise can perform common time and date operations with additional GPS operations. more>>
DateTime::Precise can perform common time and date operations with additional GPS operations.

SYNOPSIS

use DateTime::Precise;

use DateTime::Precise qw(:TimeVars);

# Constructors and ways to set time.
$t1 = DateTime::Precise->new;
$t2 = DateTime::Precise->new(1998. 4. 3 12:13:44.054);
$t3 = DateTime::Precise->new(time() - 100.23456);
$t4 = DateTime::Precise->new(1998.04.24);
$t1->set_localtime_from_epoch_time;
$t1->set_gmtime_from_epoch_time(time + 120.987);
$t1->set_from_datetime(1998.03.23 16:58:14.65);
$t1->set_time(YDHMS, 1998, 177, 9, 15, 26.5);

# This is the same as $d3->set_from_datetime(...)
$t3->dscanf("%^Y.%M.%D %h:%m:%s", "1998.03.25 20:25:23");
if ($msg = $d1->dscanf("%~M", $input)) {
print "error: $msgn";
print "Must enter a three-letter month abbrev.n";
}

# Get different parts of the time.
$year = $t3->year;
$month = $t3->month;
$day = $t3->day;
$hours = $t3->hours;
$minutes = $t3->minutes;
$seconds = $t3->seconds;
($year, $day_of_year) = $t3->get_time(Yj);

# Print times and dates.
print $t2->asctime;
print $t2->strftime(%T %C%n);
print $t2->dprintf("%^Y.%M.%D %h:%m:%s"); # datetime
print $t2->dprintf("%~w %~M %-D %h:%m:%s CST %^Y"); # ctime

# Copy times.
my $t4 = $t2->copy;

# Set one time object to the same time as another: set $t3 equal to $t2.
$t3->clone($t2);

# Find the difference between two times.
$secs_from_midnight = $t4 - $t1;
$secs_from_midnight = $t4->diff($t1);

# Add seconds, days, months, etc to time.
$t1 = $t4 + 3600; # $t1 is now an hour after midnight
$t1->inc_month(2); # add two months to $t1
$t1->floor_month; # set $t1 to the first of the month
$t1 -= 0.25; # subtract 1/4 of a second from $t1

# Can compare and sort DateTime::Precise.
print "Its late!!!" if ($t1 > $t4);
@sorted = sort @birthdays; # normal comparisons work fine

# Get the GPS weeks, seconds and day.
$gps_week = $t1->gps_week;
$gps_seconds = $t1->gps_seconds;
$gps_day = $t1->gps_day;
($gps_week, $gps_seconds, $gps_day) = $t1->gps_week_seconds_day;

<<less
Download (0.034MB)
Added: 2007-08-09 License: Perl Artistic License Price:
807 downloads
File::stat 0.1

File::stat 0.1


File::stat is a by-name interface to Perls built-in stat() functions. more>>
File::stat is a by-name interface to Perls built-in stat() functions.

SYNOPSIS

use File::stat;
$st = stat($file) or die "No $file: $!";
if ( ($st->mode & 0111) && $st->nlink > 1) ) {
print "$file is executable with lotsa linksn";
}

use File::stat qw(:FIELDS);
stat($file) or die "No $file: $!";
if ( ($st_mode & 0111) && $st_nlink > 1) ) {
print "$file is executable with lotsa linksn";
}

This modules default exports override the core stat() and lstat() functions, replacing them with versions that return "File::stat" objects. This object has methods that return the similarly named structure field name from the stat(2) function; namely, dev, ino, mode, nlink, uid, gid, rdev, size, atime, mtime, ctime, blksize, and blocks.

You may also import all the structure fields directly into your namespace as regular variables using the :FIELDS import tag. (Note that this still overrides your stat() and lstat() functions.) Access these fields as variables named with a preceding st_ in front their method names. Thus, $stat_obj->dev() corresponds to $st_dev if you import the fields.

To access this functionality without the core overrides, pass the use an empty import list, and then access function functions with their full qualified names. On the other hand, the built-ins are still available via the CORE:: pseudo-package.

<<less
Download (14.2MB)
Added: 2007-04-27 License: Perl Artistic License Price:
910 downloads
FUR filesystem 0.4.3

FUR filesystem 0.4.3


FUR is a application that let the user mount a Windows CE based device on your Linux file system. more>>
FUR is a application that let the user mount a Windows CE based device on your Linux file system: it uses the brilliant FUSE (acronym of File system in UserSpacE of Miklos Szeredi) and the great librapi2 of the Synce Project, a unix implementation of the RAPI protocol (that your device use to communicate with your other operating $ystem ) which you can find here, along with other very nice tools.
You execute it with proper arguments, then (if everything goes fine) the entire file system of your (previously connected) handheld will appear automagically mounted like a regular Linux file system where you will be able to copy, move read and write data with your favorite programs.
FUR filesystem means FUSE use libRAPI.
What dose not?
- Not very stable, particulary if used concurrently by different processes (but should be usable).
- Not well tested.
- The source is horrible(Tm).
- The implementation is more involved than it should.
- Lack documentation.
- Not even remotely optimized.
- Configuration tools deficient.
- Random access I/O is anti-optimized.
- Write is bugged (maybe a problem with concurrent file access).
- The resource locking system (e.g. to prevent different processes to write on the same file) is only roughly implemented (theres a lot to be done).
- Total absence of a caching system of some sort (which i hope to implement, sooner or later).
- Some errors are to obscure (and maybe not well implemented).
- Some attributes (e.g. ctime) are not implemented (the needed function in the librapi2 library is not yet implemented).
- No UID/GID check: this is not a security issue: only the user that invoke the dccm demon can access the filesystem, but other users should be able to see some kind of error message (which i will implement soon).
- Lot of other things i have forgot now.
- The log reporting suck
<<less
Download (0.054MB)
Added: 2007-08-19 License: GPL (GNU General Public License) Price:
798 downloads
Test::Reporter::Date::Format 1.27

Test::Reporter::Date::Format 1.27


Test::Reporter::Date::Format Perl module contains date formating subroutines. more>>
Test::Reporter::Date::Format Perl module contains date formating subroutines.

SYNOPSIS

use Test::Reporter::Date::Format;

@lt = localtime(time);

print time2str($template, time);
print strftime($template, @lt);

print time2str($template, time, $zone);
print strftime($template, @lt, $zone);

print ctime(time);
print asctime(@lt);

print ctime(time, $zone);
print asctime(@lt, $zone);

This module provides routines to format dates into ASCII strings. They correspond to the C library routines strftime and ctime.

time2str(TEMPLATE, TIME [, ZONE])

time2str converts TIME into an ASCII string using the conversion specification given in TEMPLATE. ZONE if given specifies the zone which the output is required to be in, ZONE defaults to your current zone.

strftime(TEMPLATE, TIME [, ZONE])

strftime is similar to time2str with the exception that the time is passed as an array, such as the array returned by localtime.

ctime(TIME [, ZONE])

ctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"

asctime(TIME [, ZONE])

asctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"

<<less
Download (0.023MB)
Added: 2007-07-24 License: Perl Artistic License Price:
822 downloads
pgk 0.05

pgk 0.05


pgk is a Perl Gimp Kit, a OO perl gtk interface. more>>
pgk is a Perl Gimp Kit, a OO perl gtk interface.

pgk::Widget

new ($name,$type)

pre: $name is the name of this widget.
$type is the type of this widget.
post: base class pgk::Widget created, that implements base
functions for all derived pgk classes.

add($widget)

pre: $widget is a derivative of pgk::Widget.
post: $widget has been added to the widgetlist of $self.

setHandle($handle)

pre: Got $handle from pgk_xs C-function and is a pointer
to a GTK widget.
post: $widget is associated with $handle.

$handle=getHandle()

pre: setHandle(..)
post: =the GTK widget pointer associated with this pgk widget.
Can be used in calls to pgk_xs.

setEvent($eventFunc,$eventType, ...)

pre: $eventType setEvent(main::LabelEvent, clicked, $dlg);

In case of a clicked event for the $lab label, main::LabelEvent
will be called with argument $dlg. E.g., fields in $dlg can be updated.

setTimer($millisecs,$timerFunc, ...)

pre:
post: Timer is set for $millisecs for this widget. After $millisecs,
&$timerFunc is called with arguments ....
Note: timerFunc returns 1 for continues calling.
timerFunc returns 0 for one shot calling.
smpl:
my $dlg=new pgk::Dialog(my_dialog, My title, 2, 2);
$dlg->setTimer(1000, main::updateTime, $dlg);

package main;

sub updateTime {
my $window=shift;
my $time=ctime();
$window->setValue($time);
return 1;
}

addTimer($millisecs, $timerFunc, ...)

pre:
post: Timer is added to the current widget. After $millisecs,
&$timerFunc is called with arguments $this, ....
Note: timerFunc returns 1 for continues calling.
timerFunc returns 0 for one shot calling.

smpl: my $dlg=new pgk::Dialog(my_dialog, My title, 2, 2);
$dlg->addTimer(1000, main::updateTime, "My extra argument");

package main;

sub updateTime {
my $self=shift;
my $txt=shift;
my $time=ctime();
$self->setValue($time." $txt");
return 1;
}

setProp($prop,$value|@value)

post: Property $prop of $widget has been set to $value.
smpl: $widget->setProp(myprop,"My Value");

getProp($prop)

post: = value of property $prop of $widget.
smpl: my $t=$widget->getProp(myprop);

setWidget($widget)

post: sets property widget.$widget->name() to $widget.

getWidget($name)

post: =widget of $name, if setWidget has been called before.
=undef, otherwise

setValue($value)

post: pgk::Widget base class implements this method by calling
setProp(value,$value).

getValue()

post: pgk::Widget base class implements this method by calling
getProp(value).

show()

post: shows all PGK widgets associated with the current
widget, including this one.

Quit()

post: Quits the application, destroying all pgk windows opened.

name()

post: =name of widget.

<<less
Download (0.007MB)
Added: 2006-07-11 License: Perl Artistic License Price:
1201 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 1
  • 1