Skip to content

deviceAssetCapturedAt — @gj-kit/expo-media

A public function from @gj-kit/expo-media. The signature below is taken directly from the 0.6.1 release declaration.

import { deviceAssetCapturedAt } from '@gj-kit/expo-media';
/**
* 촬영 시각(ms 에폭) → ISO 문자열. 전신 `deviceAssetCapturedAt`(devicePhotoLibrary.ts:372-378).
*
* peer 0인 순수 함수이므로 `"./device"`가 아니라 `"./core"`에 둔다(§5.7.5).
* ⚠ `creationTime`이 0이면 null이다 — 전신의 falsy 판정을 그대로 보존한다. 에폭 0(1970-01-01)은
* 기기가 시각을 모른다는 뜻이지 실제 촬영 시각이 아니며, 이것을 ISO로 흘리면 서버의
* 타임라인 정렬이 1970년으로 끌려간다.
*/
declare function deviceAssetCapturedAt(asset: {
readonly creationTime?: number | undefined;
}): string | null;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: .
  • Source: GitHub