diff options
| author | fukachan <fukachan> | 2001-12-24 12:52:46 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-12-24 12:52:46 +0000 |
| commit | e14295b990667c7873ab8da20d011ce3c2c6a2fc (patch) | |
| tree | 4e0e3f3fb4bd1d3d458ff8d363bc4ff16a7f740f | |
| parent | 3144ee48d46f6d70df63084e6909df6010791840 (diff) | |
| download | fml8-e14295b990667c7873ab8da20d011ce3c2c6a2fc.tar.gz fml8-e14295b990667c7873ab8da20d011ce3c2c6a2fc.tar.bz2 fml8-e14295b990667c7873ab8da20d011ce3c2c6a2fc.zip | |
update documents, comments
| -rw-r--r-- | fml/lib/Mail/Message/Date.pm | 49 | ||||
| -rw-r--r-- | fml/lib/Mail/Message/Language/Japanese/Subject.pm | 12 | ||||
| -rw-r--r-- | fml/lib/Mail/Message/Parse.pm | 8 |
3 files changed, 61 insertions, 8 deletions
diff --git a/fml/lib/Mail/Message/Date.pm b/fml/lib/Mail/Message/Date.pm index 275cc9ea..5e83beb5 100644 --- a/fml/lib/Mail/Message/Date.pm +++ b/fml/lib/Mail/Message/Date.pm @@ -2,7 +2,7 @@ # # Copyright (C) 2000 Ken'ichi Fukamachi # -# $FML: Date.pm,v 1.6 2001/12/22 09:21:19 fukachan Exp $ +# $FML: Date.pm,v 1.7 2001/12/24 02:26:34 fukachan Exp $ # package Mail::Message::Date; @@ -60,14 +60,22 @@ use strict; use Carp; +# Descriptions: constructor. +# Arguments: OBJ($self) NUM($time) +# Side Effects: create date object by _date() +# Return Value: OBJ sub new { - my ($class, $time) = @_; + my ($self, $time) = @_; my $type = _date($time); - return bless $type, $class; + return bless $type, $self; } +# Descriptions: prepare date by several time format +# Arguments: OBJ($self) HASH_REF($args) +# Side Effects: create object +# Return Value: HASH_REF sub _date { my ($time) = @_; @@ -111,6 +119,10 @@ sub _date } +# Descriptions: return logfile style +# Arguments: OBJ($self) NUM($time) +# Side Effects: none +# Return Value: STR sub log_file_style { my ($self, $time) = @_; @@ -119,6 +131,10 @@ sub log_file_style } +# Descriptions: return Date: style date +# Arguments: OBJ($self) NUM($time) +# Side Effects: none +# Return Value: STR sub mail_header_style { my ($self, $time) = @_; @@ -127,6 +143,10 @@ sub mail_header_style } +# Descriptions: return YYYYMMDD style date +# Arguments: OBJ($self) NUM($time) +# Side Effects: none +# Return Value: STR sub YYYYMMDD { my ($self, $time) = @_; @@ -135,6 +155,10 @@ sub YYYYMMDD } +# Descriptions: return e.g. 1999/09/13 style +# Arguments: OBJ($self) NUM($time) +# Side Effects: none +# Return Value: STR sub YYYYxMMxDD { my ($self, $time, $sep) = @_; @@ -145,6 +169,10 @@ sub YYYYxMMxDD } +# Descriptions: return YYYYMMDD.HHMM +# Arguments: OBJ($self) NUM($time) +# Side Effects: none +# Return Value: STR sub current_time { my ($self, $time) = @_; @@ -153,6 +181,10 @@ sub current_time } +# Descriptions: return YYYYMMDD.HHMMSS +# Arguments: OBJ($self) NUM($time) +# Side Effects: none +# Return Value: STR sub precise_current_time { my ($self, $time) = @_; @@ -160,13 +192,14 @@ sub precise_current_time $p->{'precise_current_time'}; } + # Descriptions: return Star Trek stardate() # stardate(tm, issue, integer, fraction) # unsigned long tm; # long *issue, *integer, *fraction; -# Arguments: $self $args -# Side Effects: -# Return Value: stardate +# Arguments: OBJ($self) HASH_REF($args) +# Side Effects: none +# Return Value: STR(stardate) sub stardate { my ($self, $args) = @_; @@ -238,6 +271,10 @@ sub _log } +# Descriptions: convert Date: string to UNIXTIME (sec) +# Arguments: STR($in) +# Side Effects: none +# Return Value: NUM(unix time) sub date_to_unixtime { my ($in) = @_; diff --git a/fml/lib/Mail/Message/Language/Japanese/Subject.pm b/fml/lib/Mail/Message/Language/Japanese/Subject.pm index 83279b85..4a4a3a8a 100644 --- a/fml/lib/Mail/Message/Language/Japanese/Subject.pm +++ b/fml/lib/Mail/Message/Language/Japanese/Subject.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Subject.pm,v 1.3 2001/12/16 14:06:41 fukachan Exp $ +# $FML: Subject.pm,v 1.4 2001/12/22 09:21:20 fukachan Exp $ # @@ -64,6 +64,10 @@ For example, it is like this: =cut +# Descriptions: looks reply message ? +# Arguments: OBJ($self) STR($x) +# Side Effects: none +# Return Value: 1 or 0 sub is_reply { my ($self, $x) = @_; @@ -96,6 +100,12 @@ within C<Subject:>. # run-hooks $CUT_OFF_HOOK(ユーザ定義HOOK) #} # レレレ対策 + + +# Descriptions: remove Re: +# Arguments: OBJ($self) HASH_REF($args) +# Side Effects: none +# Return Value: STR sub cut_off_reply_tag { my ($subject) = @_; diff --git a/fml/lib/Mail/Message/Parse.pm b/fml/lib/Mail/Message/Parse.pm index 9124a3f2..2b6c5bde 100644 --- a/fml/lib/Mail/Message/Parse.pm +++ b/fml/lib/Mail/Message/Parse.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Parse.pm,v 1.2 2001/05/27 14:27:56 fukachan Exp $ +# $FML: Parse.pm,v 1.3 2001/12/22 09:21:19 fukachan Exp $ # @@ -17,6 +17,12 @@ use Carp; use Mail::Message; @ISA = qw(Mail::Message); + +# Descriptions: fake constructor. +# run Mail::Message->parse($args) in fact. +# Arguments: OBJ($self) HASH_REF($args) +# Side Effects: none +# Return Value: OBJ sub new { my ($self, $args) = @_; |
