---
name: "SWISS::DTs"
section: "3pm"
platform: "linux"
package: "libswiss-perl"
version: "1.80-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SWISS::DTs"
---

# SWISS::DTs(3pm)

## Name

SWISS::DTs

## Description

**SWISS::DTs** represents the DT lines within an Swiss-Prot + TrEMBL entry as specified in the user manual http://www.expasy.org/sprot/userman.html .

## Inherits from

SWISS::BaseClass.pm

## Attributes

- "CREATED\_date"

  Creation date

- "ANN\_date"

  Last annotation update

- "SQ\_date"

  Last Sequence update

- "CREATED\_rel"

  Created for release

- "ANN\_rel"

  Last annotation for release

- "SQ\_rel"

  Last sequence update for release

- "ANN\_version"

  Version number for entry annotation

- "SQ\_version"

  Version number for sequence

## Methods

### Standard methods

- new

  - fromText

  - toText

  - sort

  ### Writing methods

- set\_Created ($date, $release)

  - set\_AnnotationUpdate ($date, $release\[, $version\])

  - set\_SequenceUpdate ($date, $release\[, $version\])

  ## TRANSITION

The format of the DT line will change in early 2004 from:

```
 DT   01-JUL-1993 (Rel. 26, Created)
 DT   01-JUL-1993 (Rel. 26, Last sequence update)
 DT   28-FEB-2003 (Rel. 41, Last annotation update)
```

to:

```
 DT   01-JUL-1993, integrated into UniProtKB/Swiss-Prot.
 DT   01-JUL-1993, sequence version 36.
 DT   28-FEB-2003, entry version 54.
```

This module supports both formats. To convert an entry from the old to the new format, do:

```
 $entry->DTs->CREATED_rel("UniProtKB/Swiss-Prot");
 $entry->DTs->ANN_version(54);
 $entry->DTs->SQ_version(36);
```
