---
name: "NetSDS::Util::DateTime"
section: "3pm"
platform: "linux"
package: "libnetsds-util-perl"
version: "1.045-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/NetSDS::Util::DateTime"
---

# NetSDS::Util::DateTime(3pm)

common date/time processing routines

## NAME

NetSDS::Util::DateTime - common date/time processing routines

## SYNOPSIS

```
        use NetSDS::Util::DateTime;
        print "Current date: " . date_now();
```

## DESCRIPTION

This package provides set of routines for date and time processing.

## EXPORTED FUNCTIONS

- **date\_now\_array(\[TIME\])**

  Returns array of date items for given date. If source date is not set current date used.

- **date\_now(\[TIME\])**

  Return \[given\] date as string.

  ```
      2001-12-23 14:39:53
  ```

- **date\_now\_iso8601(\[TIME\])**

  Return date as ISO 8601 string.

  ```
      20011223T14:39:53Z
  ```

  \<http://en.wikipedia.org/wiki/ISO\_8601\> \<http://www.w3.org/TR/NOTE-datetime\>

- **date\_strip(DATE)**

  Trim miliseconds from date.

- **date\_date(DATE)**

  Trim time part from date.

- **date\_time(DATE)**

  Trim date part from date.

- **time\_from\_string($string)**

  Return parsed date/time structure.

- **date\_from\_string($string)**

  Return date from string representation.

- **date\_inc(\[INCREMENT, \[TIME\]\])**

  Return date incremented with given number of seconds.

- **date\_inc\_string(\[INCREMENT, \[TIME\]\])**

  Return string representation of date incremented with given number of seconds.

## EXAMPLES

None yet

## BUGS

Unknown yet

## SEE ALSO

Date::Parse, Date::Format

## TODO

Import stuff from Wono project

## AUTHOR

Valentyn Solomko \<val@pere.org.ua\>

Michael Bochkaryov \<misha@rattler.kiev.ua\>
