| 1 | package SPVM::Sys::Time::Utimbuf; | ||
| 2 | |||
| 3 | 1; | ||
| 4 | |||
| 5 | =head1 Name | ||
| 6 | |||
| 7 | SPVM::Sys::Time::Utimbuf - struct utimbuf in the C language | ||
| 8 | |||
| 9 | =head1 Description | ||
| 10 | |||
| 11 | The Sys::Time::Utimbuf in L<SPVM> represents the C<struct utimbuf> in the C language. | ||
| 12 | |||
| 13 | =head1 Usage | ||
| 14 | |||
| 15 | use Sys::Time::Utimbuf; | ||
| 16 | |||
| 17 | my $utimbuf = Sys::Time::Utimbuf->new; | ||
| 18 | |||
| 19 | my $actime = $utimbuf->actime; | ||
| 20 | my $modtime = $utimbuf->modtime; | ||
| 21 | |||
| 22 | $utimbuf->set_actime($actime); | ||
| 23 | $utimbuf->set_modtime($modtime); | ||
| 24 | |||
| 25 | =head1 Details | ||
| 26 | |||
| 27 | This is a pointer class. The pointer of the instance is set to a C<struct utimbuf> object. | ||
| 28 | |||
| 29 | =head1 Class Methods | ||
| 30 | |||
| 31 | =head2 new | ||
| 32 | |||
| 33 | C<static method new : L<Sys::Time::Utimbuf|SPVM::Sys::Time::Utimbuf> ();> | ||
| 34 | |||
| 35 | Create a new L<Sys::Time::Utimbuf|SPVM::Sys::Time::Utimbuf> object. | ||
| 36 | |||
| 37 | =head1 Instance Methods | ||
| 38 | |||
| 39 | =head2 DESTROY | ||
| 40 | |||
| 41 | C<method DESTROY : void ();> | ||
| 42 | |||
| 43 | The destructor. | ||
| 44 | |||
| 45 | =head2 actime | ||
| 46 | |||
| 47 | C<method actime : long ();> | ||
| 48 | |||
| 49 | Get C<actime>. | ||
| 50 | |||
| 51 | =head2 set_actime | ||
| 52 | |||
| 53 | C<method set_actime : long ($actime : long);> | ||
| 54 | |||
| 55 | Set C<actime>. | ||
| 56 | |||
| 57 | =head2 modtime | ||
| 58 | |||
| 59 | C<method modtime : long ();> | ||
| 60 | |||
| 61 | Get C<modtime>. | ||
| 62 | |||
| 63 | =head2 set_modtime | ||
| 64 | |||
| 65 | C<method set_modtime : long ($modtime : long);> | ||
| 66 | |||
| 67 | Set C<modtime>. | ||
| 68 | |||
| 69 | =head1 See Also | ||
| 70 | |||
| 71 | =over 2 | ||
| 72 | |||
| 73 | =item * L<Sys|SPVM::Sys> | ||
| 74 | |||
| 75 | =back | ||
| 76 | |||
| 77 | =head1 Copyright & License | ||
| 78 | |||
| 79 | Copyright (c) 2023 Yuki Kimoto | ||
| 80 | |||
| 81 | MIT License | ||
| 82 |